summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/MSVC-CXX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-26 18:01:11 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-27 11:42:07 (GMT)
commit8f146c45087bae5869f95cebce84134c917d28bf (patch)
tree19a24ea2ecf1a94017e962ce3c1938ec8c248f05 /Modules/Compiler/MSVC-CXX.cmake
parent7fe580a36253281784dda9c35798693350e24859 (diff)
downloadCMake-8f146c45087bae5869f95cebce84134c917d28bf.zip
CMake-8f146c45087bae5869f95cebce84134c917d28bf.tar.gz
CMake-8f146c45087bae5869f95cebce84134c917d28bf.tar.bz2
Features: Activate C++ 20 support for MSVC 19.12.25835+
Diffstat (limited to 'Modules/Compiler/MSVC-CXX.cmake')
-rw-r--r--Modules/Compiler/MSVC-CXX.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/MSVC-CXX.cmake b/Modules/Compiler/MSVC-CXX.cmake
index 6a0c5d3..be259ff 100644
--- a/Modules/Compiler/MSVC-CXX.cmake
+++ b/Modules/Compiler/MSVC-CXX.cmake
@@ -22,6 +22,10 @@ if ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.0.24215.1 AND
set(CMAKE_CXX17_STANDARD_COMPILE_OPTION "-std:c++latest")
set(CMAKE_CXX17_EXTENSION_COMPILE_OPTION "-std:c++latest")
endif()
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.12.25835)
+ set(CMAKE_CXX20_STANDARD_COMPILE_OPTION "-std:c++latest")
+ set(CMAKE_CXX20_EXTENSION_COMPILE_OPTION "-std:c++latest")
+ endif()
__compiler_check_default_language_standard(CXX 19.0 14)