summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-12 14:22:25 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-01-12 14:22:46 (GMT)
commitb09f2f25b744942e4f3957a7c02ef9c86a6a41be (patch)
tree881980957e41cae2f81f03a0619e022ce3a59327 /Modules
parentd696b9dbcc5e3957f9b993d0d92580c38adb9820 (diff)
parente4fcdfa3010d097c81035aea9a18ed08b359bf38 (diff)
downloadCMake-b09f2f25b744942e4f3957a7c02ef9c86a6a41be.zip
CMake-b09f2f25b744942e4f3957a7c02ef9c86a6a41be.tar.gz
CMake-b09f2f25b744942e4f3957a7c02ef9c86a6a41be.tar.bz2
Merge topic 'frontend-variant-always'
e4fcdfa301 Set CMAKE_<LANG>_COMPILER_FRONTEND_VARIANT on single-variant compilers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8036
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 73c775a..7f392c8 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -243,8 +243,12 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
else()
set(CMAKE_${lang}_COMPILER_FRONTEND_VARIANT "GNU")
endif()
- elseif("x${CMAKE_${lang}_COMPILER_ID}" STREQUAL "xFujitsuClang")
+ elseif("x${CMAKE_${lang}_COMPILER_ID}" STREQUAL "xGNU"
+ OR "x${CMAKE_${lang}_COMPILER_ID}" STREQUAL "xAppleClang"
+ OR "x${CMAKE_${lang}_COMPILER_ID}" STREQUAL "xFujitsuClang")
set(CMAKE_${lang}_COMPILER_FRONTEND_VARIANT "GNU")
+ elseif("x${CMAKE_${lang}_COMPILER_ID}" STREQUAL "xMSVC")
+ set(CMAKE_${lang}_COMPILER_FRONTEND_VARIANT "MSVC")
else()
set(CMAKE_${lang}_COMPILER_FRONTEND_VARIANT "")
endif()