aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/VendorConfig.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/VendorConfig.cmake b/cmake/VendorConfig.cmake
index c4f3ce9..b424378 100644
--- a/cmake/VendorConfig.cmake
+++ b/cmake/VendorConfig.cmake
@@ -5,10 +5,9 @@ string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME)
if (NOT EXISTS "${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}/.config")
message(FATAL_ERROR "No vendor config for ${SYSTEM_NAME}: ${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}/.config is missing")
endif()
+# there is a .config in ${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}/.config
-# the .config has been found
-add_custom_target(config_header
- BYPRODUCTS "${PROJECT_BINARY_DIR}/include/config.h"
+add_custom_command(OUTPUT "${PROJECT_BINARY_DIR}/include/config.h"
COMMAND ${CMAKE_COMMAND} -E env "srctree=${PROJECT_SOURCE_DIR}"
${PYTHON_EXECUTABLE} "${PROJECT_SOURCE_DIR}/tools/Kconfiglib/genconfig.py" "--header-path=${PROJECT_BINARY_DIR}/include/config.h" "${PROJECT_SOURCE_DIR}/src/Kconfig"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}")
@@ -26,6 +25,8 @@ config("POI_EXE" "src/Kconfig")
config("INSTALL_BINDIR" "Kconfig")
config("INSTALL_LIBDIR" "Kconfig")
config("INSTALL_PLUGINDIR" "Kconfig")
+config("INSTALL_APPDIR" "Kconfig")
+config("INSTALL_ICONDIR" "Kconfig")
# QTBUG defines
execute_process(