From 7f2ea688d2b6881a071d3db86efb8825fafd3014 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sat, 21 May 2022 04:40:13 +0200 Subject: [PATCH] cmake: On MSVC, set c++latest by requesting a C++23 feature set. --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 886c6513e5..0bbb6d3b69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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,