mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #872 from heinrich5991/pr_ddnet_cpp11
Change to C++11 in `CMakeLists.txt`, `bam.lua`
This commit is contained in:
commit
d6f2dc7521
|
@ -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