cmake: skip build system check on compile
[openwrt/openwrt.git] / include / cmake.mk
index 80c1b05..900dae1 100644 (file)
@@ -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