From 6bbec61856b79b9f1db06877e51d0b476350cde2 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 24 Aug 2018 14:38:46 +0300 Subject: [PATCH] VS: enable C++17 --- rpcs3/CMakeLists.txt | 2 +- rpcs3_default.props | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/CMakeLists.txt b/rpcs3/CMakeLists.txt index 9192906df8..893bcbf5f7 100644 --- a/rpcs3/CMakeLists.txt +++ b/rpcs3/CMakeLists.txt @@ -154,7 +154,7 @@ if(NOT MSVC) endif() endif() else() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:throwingNew /D _CRT_SECURE_NO_DEPRECATE=1 /D _CRT_NON_CONFORMING_SWPRINTFS=1 /D _SCL_SECURE_NO_WARNINGS=1") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:throwingNew /std:c++latest /D _CRT_SECURE_NO_DEPRECATE=1 /D _CRT_NON_CONFORMING_SWPRINTFS=1 /D _SCL_SECURE_NO_WARNINGS=1") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcd.lib /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrtd.lib") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS /DYNAMICBASE:NO /BASE:0x10000 /FIXED") diff --git a/rpcs3_default.props b/rpcs3_default.props index 51c5dac917..bf997d627f 100644 --- a/rpcs3_default.props +++ b/rpcs3_default.props @@ -19,7 +19,7 @@ false true NotUsing - /Zc:throwingNew + /Zc:throwingNew /std:c++latest xxhash.lib;ws2_32.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib