Move Simple include definition to ESP32-drivers

This commit is contained in:
Tomas Rezucha 2021-02-23 20:28:27 +01:00
parent 28d9fe7641
commit 503ecb2b1e

View file

@ -81,6 +81,8 @@ idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS ${LVGL_INCLUDE_DIRS}
REQUIRES lvgl)
target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_LVGL_H_INCLUDE_SIMPLE")
else()
message(FATAL_ERROR "LVGL ESP32 drivers: ESP_PLATFORM is not defined. Try reinstalling ESP-IDF.")
endif()