diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-04 21:04:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-04 23:29:53 (GMT) |
commit | 9d767810e1e54eb9233854f0dbf1345a0b5be60f (patch) | |
tree | dace19f8ca996abbefb5cc30c1f401ac8cc27097 /Modules/Compiler/MSVC-CXX.cmake | |
parent | 72537e4436a17535af5424628adef3b614a61679 (diff) | |
download | CMake-9d767810e1e54eb9233854f0dbf1345a0b5be60f.zip CMake-9d767810e1e54eb9233854f0dbf1345a0b5be60f.tar.gz CMake-9d767810e1e54eb9233854f0dbf1345a0b5be60f.tar.bz2 |
Features: Populate CMAKE_<LANG>_STANDARD_DEFAULT only for supported compilers.
If no compiler feature information is known for a given compiler
version, do not set a language standard default either. The two
settings must be recorded consistently.
Diffstat (limited to 'Modules/Compiler/MSVC-CXX.cmake')
-rw-r--r-- | Modules/Compiler/MSVC-CXX.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/Compiler/MSVC-CXX.cmake b/Modules/Compiler/MSVC-CXX.cmake index 962aaeb..82ce069 100644 --- a/Modules/Compiler/MSVC-CXX.cmake +++ b/Modules/Compiler/MSVC-CXX.cmake @@ -1,5 +1,8 @@ -# MSVC has no specific language level or flags to change it. -set(CMAKE_CXX_STANDARD_DEFAULT "") + +if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16.0) + # MSVC has no specific language level or flags to change it. + set(CMAKE_CXX_STANDARD_DEFAULT "") +endif() macro(cmake_record_cxx_compile_features) record_compiler_features(CXX "" CMAKE_CXX_COMPILE_FEATURES) |