diff options
author | Brad King <brad.king@kitware.com> | 2017-11-28 12:50:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-28 12:57:58 (GMT) |
commit | acb4cb950023be9300699a0220715bebb50306ad (patch) | |
tree | 0632a156bc8bdfa03d75d81b7fbda4019096bcb1 /Modules/CMakeDetermineCXXCompiler.cmake | |
parent | 65f21a7eadc2144f0c85cd883cf63a6eb7681528 (diff) | |
download | CMake-acb4cb950023be9300699a0220715bebb50306ad.zip CMake-acb4cb950023be9300699a0220715bebb50306ad.tar.gz CMake-acb4cb950023be9300699a0220715bebb50306ad.tar.bz2 |
CMakeFindBinUtils: Improve switch between MSVC- and GNU-like tools
The switch was not considering some languages, such as `ASM`.
Instead of memorizing the list of languages in the condition,
use a language specified by the includer.
Fixes: #17510
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 4541844..c0fb3b6 100644 --- a/Modules/CMakeDetermineCXXCompiler.cmake +++ b/Modules/CMakeDetermineCXXCompiler.cmake @@ -164,8 +164,8 @@ if (CMAKE_CROSSCOMPILING AND NOT _CMAKE_TOOLCHAIN_PREFIX) endif () -include(CMakeFindBinUtils) set(_CMAKE_PROCESSING_LANGUAGE "CXX") +include(CMakeFindBinUtils) include(Compiler/${CMAKE_CXX_COMPILER_ID}-FindBinUtils OPTIONAL) unset(_CMAKE_PROCESSING_LANGUAGE) |