aboutsummaryrefslogtreecommitdiff
path: root/src/kconfig_compiler
diff options
context:
space:
mode:
authorAllen Winter <winter@kde.org>2021-12-27 10:20:12 -0500
committerAllen Winter <winter@kde.org>2021-12-27 10:20:12 -0500
commitc5ce7c4328706018fb9b695eb5c8959aaafa4bc4 (patch)
tree5cf0be7483dbadceabd9fb357e509d79b83a9efd /src/kconfig_compiler
parenteac8e43e25717fcef579a25bd40d777fc5556255 (diff)
downloadkconfig-c5ce7c4328706018fb9b695eb5c8959aaafa4bc4.tar.gz
kconfig-c5ce7c4328706018fb9b695eb5c8959aaafa4bc4.tar.bz2
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
Diffstat (limited to 'src/kconfig_compiler')
-rw-r--r--src/kconfig_compiler/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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()