diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-03-25 14:05:06 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2020-03-30 21:08:01 (GMT) |
commit | c5dd2ca53890c2ebc469594bbcd6af1796225814 (patch) | |
tree | 802a7b871db12640bb086a820cae6bbafb470484 /Modules/CMakeDetermineCXXCompiler.cmake | |
parent | 888b8a43d82e6f6157642c2bd84520920d8e2d11 (diff) | |
download | CMake-c5dd2ca53890c2ebc469594bbcd6af1796225814.zip CMake-c5dd2ca53890c2ebc469594bbcd6af1796225814.tar.gz CMake-c5dd2ca53890c2ebc469594bbcd6af1796225814.tar.bz2 |
DetermineCompiler: Relax _CMAKE_TOOLCHAIN_PREFIX detection
Now detect _CMAKE_TOOLCHAIN_PREFIX whenever a compilers
name matches the heuristics, instead of only doing it
when cross compiling
Diffstat (limited to 'Modules/CMakeDetermineCXXCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCXXCompiler.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCXXCompiler.cmake b/Modules/CMakeDetermineCXXCompiler.cmake index 7274eec..ebac435 100644 --- a/Modules/CMakeDetermineCXXCompiler.cmake +++ b/Modules/CMakeDetermineCXXCompiler.cmake @@ -150,7 +150,7 @@ endif () # "arm-unknown-nto-qnx6" instead of the correct "arm-unknown-nto-qnx6.3.0-" -if (CMAKE_CROSSCOMPILING AND NOT _CMAKE_TOOLCHAIN_PREFIX) +if (NOT _CMAKE_TOOLCHAIN_PREFIX) if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU|Clang|QCC") get_filename_component(COMPILER_BASENAME "${CMAKE_CXX_COMPILER}" NAME) |