mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 22:30:49 +08:00
build(cmake): allow correct use of LV_CONF_PATH (#4428)
Signed-off-by: António Oliveira <antonio@amsobr.com> Co-authored-by: António Oliveira <antonio@amsobr.com>
This commit is contained in:
@@ -6,10 +6,11 @@ option(LV_LVGL_H_INCLUDE_SIMPLE
|
|||||||
option(LV_CONF_INCLUDE_SIMPLE
|
option(LV_CONF_INCLUDE_SIMPLE
|
||||||
"Use #include \"lv_conf.h\" instead of #include \"../../lv_conf.h\"" ON)
|
"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
|
# Option LV_CONF_PATH, which should be the path for lv_conf.h
|
||||||
# includes
|
# If set parent path LV_CONF_DIR is added to includes
|
||||||
option(LV_CONF_PATH "Path defined for lv_conf.h")
|
if( LV_CONF_PATH )
|
||||||
get_filename_component(LV_CONF_DIR ${LV_CONF_PATH} DIRECTORY)
|
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 to build shared libraries (as opposed to static), default: OFF
|
||||||
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
|
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
|
||||||
|
|||||||
Reference in New Issue
Block a user