summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2021-02-13 08:40:12 (GMT)
committerRaul Tambre <raul@tambre.ee>2021-02-25 16:22:32 (GMT)
commit10a72c0f1c5e7e57ac61ff1f8a73acdd6e159c06 (patch)
treefa020d36cd4aa04f7adc72c269c69ba29d00a26e
parent6c2e309a6667f0a6869becdeafcdc5e375116bda (diff)
downloadCMake-10a72c0f1c5e7e57ac61ff1f8a73acdd6e159c06.zip
CMake-10a72c0f1c5e7e57ac61ff1f8a73acdd6e159c06.tar.gz
CMake-10a72c0f1c5e7e57ac61ff1f8a73acdd6e159c06.tar.bz2
Clang: Default C standard doesn't depend on compatibility mode
MSVC compatibility mode doesn't affect the default standard.
-rw-r--r--Modules/Compiler/Clang-C.cmake6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/Compiler/Clang-C.cmake b/Modules/Compiler/Clang-C.cmake
index dc18607..cf493d7 100644
--- a/Modules/Compiler/Clang-C.cmake
+++ b/Modules/Compiler/Clang-C.cmake
@@ -81,8 +81,4 @@ if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 3.0)
set(CMAKE_C11_STANDARD__HAS_FULL_SUPPORT ON)
endif()
-if(NOT "x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC")
- __compiler_check_default_language_standard(C 2.1 99 3.5.2 11 11.0 17)
-else()
- set(CMAKE_C_STANDARD_DEFAULT "")
-endif()
+__compiler_check_default_language_standard(C 2.1 99 3.5.2 11 11.0 17)