summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-30 12:39:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-07-30 12:39:58 (GMT)
commit533a6256a3fa9d362666519ecae90f7299911497 (patch)
treefecb99bd8281a212b36444840a73e40a598afa57
parent2fdb7c5cf4be349696c603d96dea0b29e9506a73 (diff)
parent21e497fe6323b84e34c925e740f242edd6821c40 (diff)
downloadCMake-533a6256a3fa9d362666519ecae90f7299911497.zip
CMake-533a6256a3fa9d362666519ecae90f7299911497.tar.gz
CMake-533a6256a3fa9d362666519ecae90f7299911497.tar.bz2
Merge topic 'clang-msvc-cxx-std' into release-3.18
21e497fe63 Clang: Fix fallback compile features when simulating old MSVC versions Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !5082
-rw-r--r--Modules/Compiler/Clang.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake
index bb516d3..52d5350 100644
--- a/Modules/Compiler/Clang.cmake
+++ b/Modules/Compiler/Clang.cmake
@@ -222,11 +222,11 @@ macro(__compiler_clang_cxx_standards lang)
# can be attempted.
macro(cmake_record_${lang}_compile_features)
list(APPEND CMAKE_${lang}_COMPILE_FEATURES
- ${lang}_std_98
- ${lang}_std_11
- ${lang}_std_14
- ${lang}_std_17
- ${lang}_std_20
+ cxx_std_98
+ cxx_std_11
+ cxx_std_14
+ cxx_std_17
+ cxx_std_20
)
_record_compiler_features(${lang} "" CMAKE_${lang}_COMPILE_FEATURES)
endmacro()