From c5ce7c4328706018fb9b695eb5c8959aaafa4bc4 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Mon, 27 Dec 2021 10:20:12 -0500 Subject: kconfig_compiler/CMakeLists.txt - use CMAKE_CROSSCOMPILING use the CMake variable CMAKE_CROSSCOMPILING to detect when cross-compiling instead of CMAKE_TOOLCHAIN_FILE. CMAKE_TOOLCHAIN_FILE can be set when not cross-compiling --- src/kconfig_compiler/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/kconfig_compiler/CMakeLists.txt b/src/kconfig_compiler/CMakeLists.txt index a475b511..44018401 100644 --- a/src/kconfig_compiler/CMakeLists.txt +++ b/src/kconfig_compiler/CMakeLists.txt @@ -1,6 +1,6 @@ add_executable(kconfig_compiler) -if(CMAKE_TOOLCHAIN_FILE) +if(CMAKE_CROSSCOMPILING) if(BUILD_TESTING) message(WARNING "Testing should be disabled on cross-compilation") endif() -- cgit v1.2.1