mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 09:45:32 +00:00
[Build] Use C++14 instead of C++11, as the server requires the former
This commit is contained in:
parent
dddd2f1cc7
commit
8bb764c6d6
1 changed files with 2 additions and 1 deletions
|
@ -360,7 +360,8 @@ if (NOT WIN32 AND NOT APPLE)
|
|||
endif()
|
||||
|
||||
# CXX Compiler settings
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
# tes3mp's server requires C++14
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wundef -Wno-unused-parameter -std=c++11 -pedantic -Wno-long-long")
|
||||
add_definitions( -DBOOST_NO_CXX11_SCOPED_ENUMS=ON )
|
||||
|
|
Loading…
Reference in a new issue