fix(cmake-build): Add missing definition for LVGL conf path
@@ -29,6 +29,11 @@ target_compile_definitions(
lvgl PUBLIC $<$<BOOL:${LV_LVGL_H_INCLUDE_SIMPLE}>:LV_LVGL_H_INCLUDE_SIMPLE>
$<$<BOOL:${LV_CONF_INCLUDE_SIMPLE}>:LV_CONF_INCLUDE_SIMPLE>)
+# Add definition of LV_CONF_PATH only if needed
+if(LV_CONF_PATH)
+ target_compile_definitions(lvgl PUBLIC LV_CONF_PATH=${LV_CONF_PATH})
+endif()
+
# Include root and optional parent path of LV_CONF_PATH
target_include_directories(lvgl SYSTEM PUBLIC ${LVGL_ROOT_DIR} ${LV_CONF_DIR})
