mirror of
https://github.com/reactos/CMake.git
synced 2025-01-07 03:30:27 +00:00
Features: Activate C++ 20 support for MSVC 19.12.25835+
This commit is contained in:
parent
7fe580a362
commit
8f146c4508
@ -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_STANDARD_COMPILE_OPTION "-std:c++latest")
|
||||||
set(CMAKE_CXX17_EXTENSION_COMPILE_OPTION "-std:c++latest")
|
set(CMAKE_CXX17_EXTENSION_COMPILE_OPTION "-std:c++latest")
|
||||||
endif()
|
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)
|
__compiler_check_default_language_standard(CXX 19.0 14)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user