cmake: On MSVC, set c++latest by requesting a C++23 feature set.

This commit is contained in:
Admiral H. Curtiss 2022-05-21 04:40:13 +02:00
parent 9908219dc6
commit 7f2ea688d2
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB

View File

@ -27,10 +27,8 @@ project(dolphin-emu)
if (MSVC)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX20_STANDARD_COMPILE_OPTION "-std:c++latest")
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()
# Name of the Dolphin distributor. If you redistribute Dolphin builds (forks,