Codechange: switch to C++17 on all platforms.

This commit is contained in:
frosch
2020-12-13 22:24:36 +01:00
committed by Michael Lutz
parent c9fd85528a
commit 5d278b62cc
2 changed files with 3 additions and 10 deletions

View File

@@ -32,14 +32,7 @@ set_directory_options()
include(Static)
set_static_if_needed()
if(MSVC)
# C++17 for MSVC
set(CMAKE_CXX_STANDARD 17)
else()
# C++11 for all other targets
set(CMAKE_CXX_STANDARD 11)
endif()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)