mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-29 04:33:52 +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:
parent
9285f44539
commit
5d056ed2b9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user