aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-20 18:48:56 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-20 18:48:56 +0200
commitf25a3eb2ac26c99eb4a576d54f83c54767690904 (patch)
treec7e183baa5a67aec97f562be04324be01c43dc22 /cmake
parentFix config.h from regenerating on every build (diff)
downloadsmolbote-f25a3eb2ac26c99eb4a576d54f83c54767690904.tar.xz
Create bindir/include if needed because make doesn't
Diffstat (limited to 'cmake')
-rw-r--r--cmake/VendorConfig.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/VendorConfig.cmake b/cmake/VendorConfig.cmake
index 0e6891c..bb88eec 100644
--- a/cmake/VendorConfig.cmake
+++ b/cmake/VendorConfig.cmake
@@ -24,6 +24,7 @@ config("INSTALL_APPDIR" "Kconfig")
config("INSTALL_ICONDIR" "Kconfig")
add_custom_command(OUTPUT "${PROJECT_BINARY_DIR}/include/config.h"
+ COMMAND ${CMAKE_COMMAND} -E make_directory "${PROJECT_BINARY_DIR}/include"
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}")