summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2019-05-07 17:26:34 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-13 17:13:09 (GMT)
commitd156f8f5a2702aa64b74fa01f48b38c7078054d1 (patch)
tree7e7242eba07d89058046c6e6db09908de4e7425a /Modules/Compiler
parent62dbe53a8a2809c0c38386e5880acb446feacf28 (diff)
downloadCMake-d156f8f5a2702aa64b74fa01f48b38c7078054d1.zip
CMake-d156f8f5a2702aa64b74fa01f48b38c7078054d1.tar.gz
CMake-d156f8f5a2702aa64b74fa01f48b38c7078054d1.tar.bz2
CompileFeatures: Record when MSVC gained full CXX14 support
Use the infrastructure added by commit 646fb1a646 (CompileFeatures: memoize C++ compilers with full language level support, 2019-03-27) to avoid using a `try_compile` to check for C++14 feature support when the running compiler is known to have all features.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/MSVC-CXX.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/MSVC-CXX.cmake b/Modules/Compiler/MSVC-CXX.cmake
index 787c17e..f3a7408 100644
--- a/Modules/Compiler/MSVC-CXX.cmake
+++ b/Modules/Compiler/MSVC-CXX.cmake
@@ -18,6 +18,7 @@ if ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.0.24215.1 AND
set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION "-std:c++14")
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.11.25505)
set(CMAKE_CXX11_STANDARD__HAS_FULL_SUPPORT ON)
+ set(CMAKE_CXX14_STANDARD__HAS_FULL_SUPPORT ON)
set(CMAKE_CXX17_STANDARD_COMPILE_OPTION "-std:c++17")
set(CMAKE_CXX17_EXTENSION_COMPILE_OPTION "-std:c++17")
else()