mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
Change to C++11 in CMakeLists.txt
, bam.lua
This commit is contained in:
parent
94c7c8d864
commit
72a17da716
|
@ -54,8 +54,7 @@ if(NOT(CMAKE_BUILD_TYPE))
|
|||
set(CMAKE_BUILD_TYPE Release)
|
||||
endif()
|
||||
|
||||
# Use C++14
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
|
|
3
bam.lua
3
bam.lua
|
@ -205,6 +205,9 @@ function build(settings)
|
|||
settings.cc.flags:Add("/EHsc")
|
||||
else
|
||||
settings.cc.flags:Add("-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers")
|
||||
if config.compiler.driver == "gcc" then
|
||||
settings.cc.flags_cxx:Add("-std=c++11")
|
||||
end
|
||||
if family == "windows" then
|
||||
if config.compiler.driver == "gcc" then
|
||||
settings.link.flags:Add("-static-libgcc")
|
||||
|
|
Loading…
Reference in a new issue