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:
NicGrimpe
2024-08-26 06:31:12 -04:00
committed by GitHub
parent 3147fc2f52
commit 8b659fc9a2

View File

@@ -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()