summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19590f109..b2fd0ca81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -87,7 +87,7 @@ message(STATUS "Target architecture: ${ARCHITECTURE}")
87# Configure compilation flags 87# Configure compilation flags
88# =========================== 88# ===========================
89 89
90set(CMAKE_CXX_STANDARD 14) 90set(CMAKE_CXX_STANDARD 17)
91set(CMAKE_CXX_STANDARD_REQUIRED ON) 91set(CMAKE_CXX_STANDARD_REQUIRED ON)
92 92
93if (NOT MSVC) 93if (NOT MSVC)
@@ -129,7 +129,7 @@ else()
129 # /EHsc - C++-only exception handling semantics 129 # /EHsc - C++-only exception handling semantics
130 # /Zc:throwingNew - let codegen assume `operator new` will never return null 130 # /Zc:throwingNew - let codegen assume `operator new` will never return null
131 # /Zc:inline - let codegen omit inline functions in object files 131 # /Zc:inline - let codegen omit inline functions in object files
132 set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} /EHsc /Zc:throwingNew,inline" CACHE STRING "" FORCE) 132 set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} /EHsc /std:c++latest /Zc:throwingNew,inline" CACHE STRING "" FORCE)
133 133
134 # /MDd - Multi-threaded Debug Runtime DLL 134 # /MDd - Multi-threaded Debug Runtime DLL
135 set(CMAKE_C_FLAGS_DEBUG "/Od /MDd" CACHE STRING "" FORCE) 135 set(CMAKE_C_FLAGS_DEBUG "/Od /MDd" CACHE STRING "" FORCE)