mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(env_support/cmake): If LV_CONF_PATH is set, install the indicated config instead of the default one. (#6675)
This commit is contained in:
parent
3147fc2f52
commit
8b659fc9a2
@ -80,8 +80,13 @@ file(GLOB LVGL_PUBLIC_HEADERS
|
||||
"${LVGL_ROOT_DIR}/lv_version.h")
|
||||
|
||||
if(NOT LV_CONF_SKIP)
|
||||
list(APPEND LVGL_PUBLIC_HEADERS
|
||||
"${CMAKE_SOURCE_DIR}/lv_conf.h")
|
||||
if (LV_CONF_PATH)
|
||||
list(APPEND LVGL_PUBLIC_HEADERS
|
||||
${LV_CONF_PATH})
|
||||
else()
|
||||
list(APPEND LVGL_PUBLIC_HEADERS
|
||||
"${CMAKE_SOURCE_DIR}/lv_conf.h")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if("${LIB_INSTALL_DIR}" STREQUAL "")
|
||||
@ -210,4 +215,4 @@ if(NOT LV_CONF_BUILD_DISABLE_EXAMPLES)
|
||||
LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
|
||||
RUNTIME DESTINATION "${RUNTIME_INSTALL_DIR}"
|
||||
PUBLIC_HEADER DESTINATION "${INC_INSTALL_DIR}")
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user