This commit is contained in:
Dennis Felsing 2022-02-15 00:03:14 +01:00
parent e31f255a65
commit 0d06193b2f

View file

@ -184,12 +184,12 @@ endif()
if(NOT MSVC AND NOT HAIKU) if(NOT MSVC AND NOT HAIKU)
if(CMAKE_VERSION VERSION_LESS 3.1 OR TARGET_OS STREQUAL "mac") if(CMAKE_VERSION VERSION_LESS 3.1 OR TARGET_OS STREQUAL "mac")
check_cxx_compiler_flag(-std=gnu++11 FLAG_SUPPORTED_std_gnu__11) check_cxx_compiler_flag(-std=gnu++17 FLAG_SUPPORTED_std_gnu__17)
if(FLAG_SUPPORTED_std_gnu__11) if(FLAG_SUPPORTED_std_gnu__17)
if(CMAKE_CXX_FLAGS) if(CMAKE_CXX_FLAGS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++17")
else() else()
set(CMAKE_CXX_FLAGS -std=gnu++11) set(CMAKE_CXX_FLAGS -std=gnu++17)
endif() endif()
endif() endif()
endif() endif()