diff --git a/env_support/cmake/custom.cmake b/env_support/cmake/custom.cmake index 2fdc428fef..a9b79858dc 100644 --- a/env_support/cmake/custom.cmake +++ b/env_support/cmake/custom.cmake @@ -6,10 +6,11 @@ option(LV_LVGL_H_INCLUDE_SIMPLE option(LV_CONF_INCLUDE_SIMPLE "Use #include \"lv_conf.h\" instead of #include \"../../lv_conf.h\"" ON) -# Option to set LV_CONF_PATH, if set parent path LV_CONF_DIR is added to -# includes -option(LV_CONF_PATH "Path defined for lv_conf.h") -get_filename_component(LV_CONF_DIR ${LV_CONF_PATH} DIRECTORY) +# Option LV_CONF_PATH, which should be the path for lv_conf.h +# If set parent path LV_CONF_DIR is added to includes +if( LV_CONF_PATH ) + get_filename_component(LV_CONF_DIR ${LV_CONF_PATH} DIRECTORY) +endif( LV_CONF_PATH ) # Option to build shared libraries (as opposed to static), default: OFF option(BUILD_SHARED_LIBS "Build shared libraries" OFF)