diff options
author | Brad King <brad.king@kitware.com> | 2023-01-12 14:22:25 +0000 |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-01-12 09:22:46 -0500 |
commit | b09f2f25b744942e4f3957a7c02ef9c86a6a41be (patch) | |
tree | 881980957e41cae2f81f03a0619e022ce3a59327 /Modules/CMakeDetermineCompilerId.cmake | |
parent | d696b9dbcc5e3957f9b993d0d92580c38adb9820 (diff) | |
parent | e4fcdfa3010d097c81035aea9a18ed08b359bf38 (diff) | |
download | cmake-b09f2f25b744942e4f3957a7c02ef9c86a6a41be.tar.gz |
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/CMakeDetermineCompilerId.cmake')
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index 73c775aeb3..7f392c89bd 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() |