diff --git a/env_support/cmake/custom.cmake b/env_support/cmake/custom.cmake index 76bd9ac17b..f8dd3ede9d 100644 --- a/env_support/cmake/custom.cmake +++ b/env_support/cmake/custom.cmake @@ -109,7 +109,7 @@ include(${CMAKE_CURRENT_BINARY_DIR}/lv_conf.cmake) # Add definition of LV_CONF_PATH only if needed # Do not redefine it if already defined in tests/CMakeLists.txt if(LV_CONF_PATH AND NOT LV_BUILD_TEST) - target_compile_definitions(lvgl PUBLIC LV_CONF_PATH=${LV_CONF_PATH}) + target_compile_definitions(lvgl PUBLIC LV_CONF_PATH="${LV_CONF_PATH}") endif() # Add definition of LV_CONF_SKIP only if needed