mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
gnu++17
This commit is contained in:
parent
e31f255a65
commit
0d06193b2f
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue