diff options
author | Raul Tambre <raul@tambre.ee> | 2021-02-06 18:37:20 +0200 |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2021-02-25 18:22:32 +0200 |
commit | 6c2e309a6667f0a6869becdeafcdc5e375116bda (patch) | |
tree | 47023be979fbbdbdcc1b18c5a8ce54d25a81224b /Modules | |
parent | 9f81591dbf5d8840f7193bb01ac0921fd5b2b687 (diff) | |
download | cmake-6c2e309a6667f0a6869becdeafcdc5e375116bda.tar.gz |
Clang: Set standard flags according to frontend variant
They depend on the frontend not which compiler we're simulating.
Fixes #21771.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Compiler/Clang-C.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang-C.cmake b/Modules/Compiler/Clang-C.cmake index 8f00a72e3d..dc186072b3 100644 --- a/Modules/Compiler/Clang-C.cmake +++ b/Modules/Compiler/Clang-C.cmake @@ -25,7 +25,7 @@ elseif("x${CMAKE_C_COMPILER_FRONTEND_VARIANT}" STREQUAL "xGNU") endif() endif() -if(NOT "x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC") +if("x${CMAKE_C_COMPILER_FRONTEND_VARIANT}" STREQUAL "xGNU") if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 2.1) set(CMAKE_C90_STANDARD_COMPILE_OPTION "-std=c90") set(CMAKE_C90_EXTENSION_COMPILE_OPTION "-std=gnu90") |