summaryrefslogtreecommitdiff
path: root/include/cmake.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-20 12:13:51 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-21 16:16:25 +0100
commitf6d94b0dd67f4d5e5dbadbd97a765732d6a0e757 (patch)
tree2e2490354d9e11e3c9ac5a6a603792c38aaa8254 /include/cmake.mk
parent59508e309e91ba152ae43ef1d6983f2f6f873632 (diff)
downloadmtk-20170518-f6d94b0dd67f4d5e5dbadbd97a765732d6a0e757.zip
mtk-20170518-f6d94b0dd67f4d5e5dbadbd97a765732d6a0e757.tar.gz
mtk-20170518-f6d94b0dd67f4d5e5dbadbd97a765732d6a0e757.tar.bz2
cmake: skip build system check on compile
cmake checks the build system and its variables on its own to detect if the makefiles need to be regenerated. Unfortunately this can invalidate overrides passed in the Build/Configure step. On non-Linux systems this breaks the build when switching between targets of the same package architecture. Fix this by forcibly disabling the build system check and relying on the LEDE build system to take care of these things Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/cmake.mk')
-rw-r--r--include/cmake.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cmake.mk b/include/cmake.mk
index 5f572e9..5a403cb 100644
--- a/include/cmake.mk
+++ b/include/cmake.mk
@@ -107,3 +107,7 @@ define Host/Configure/Default
$(HOST_CMAKE_SOURCE_DIR) \
)
endef
+
+MAKE_FLAGS += \
+ CMAKE_COMMAND='$$(if $$(CMAKE_DISABLE_$$@),:,$(STAGING_DIR_HOST)/bin/cmake)' \
+ CMAKE_DISABLE_cmake_check_build_system=1