mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 05:26:18 +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:
@@ -80,8 +80,13 @@ file(GLOB LVGL_PUBLIC_HEADERS
|
|||||||
"${LVGL_ROOT_DIR}/lv_version.h")
|
"${LVGL_ROOT_DIR}/lv_version.h")
|
||||||
|
|
||||||
if(NOT LV_CONF_SKIP)
|
if(NOT LV_CONF_SKIP)
|
||||||
list(APPEND LVGL_PUBLIC_HEADERS
|
if (LV_CONF_PATH)
|
||||||
"${CMAKE_SOURCE_DIR}/lv_conf.h")
|
list(APPEND LVGL_PUBLIC_HEADERS
|
||||||
|
${LV_CONF_PATH})
|
||||||
|
else()
|
||||||
|
list(APPEND LVGL_PUBLIC_HEADERS
|
||||||
|
"${CMAKE_SOURCE_DIR}/lv_conf.h")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if("${LIB_INSTALL_DIR}" STREQUAL "")
|
if("${LIB_INSTALL_DIR}" STREQUAL "")
|
||||||
@@ -210,4 +215,4 @@ if(NOT LV_CONF_BUILD_DISABLE_EXAMPLES)
|
|||||||
LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
|
LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
|
||||||
RUNTIME DESTINATION "${RUNTIME_INSTALL_DIR}"
|
RUNTIME DESTINATION "${RUNTIME_INSTALL_DIR}"
|
||||||
PUBLIC_HEADER DESTINATION "${INC_INSTALL_DIR}")
|
PUBLIC_HEADER DESTINATION "${INC_INSTALL_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user