diff options
author | Brad King <brad.king@kitware.com> | 2020-03-26 12:47:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-26 12:47:36 (GMT) |
commit | 6c7e6b1e49f311adac8517dc70807ff49e96d411 (patch) | |
tree | 2b8ffa4ff6f64ff8ac1472b61a8af58172cec700 /Modules | |
parent | e3185e3d1b92a95c18f22f70b3cef6944dd019eb (diff) | |
download | CMake-6c7e6b1e49f311adac8517dc70807ff49e96d411.zip CMake-6c7e6b1e49f311adac8517dc70807ff49e96d411.tar.gz CMake-6c7e6b1e49f311adac8517dc70807ff49e96d411.tar.bz2 |
Ninja Multi-Config: Fix MSVC showincludes prefix detection
Activate the detection logic for this generator too.
Fixes: #20506
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index d125791..a7b4950 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -128,7 +128,7 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src) set(CMAKE_EXECUTABLE_FORMAT "Unknown" CACHE INTERNAL "Executable file format") endif() - if(CMAKE_GENERATOR STREQUAL "Ninja" AND MSVC_${lang}_ARCHITECTURE_ID) + if(CMAKE_GENERATOR MATCHES "^Ninja" AND MSVC_${lang}_ARCHITECTURE_ID) foreach(userflags "${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}" "") CMAKE_DETERMINE_MSVC_SHOWINCLUDES_PREFIX(${lang} "${userflags}") endforeach() |