[Master] Use add_definitions

Because CMAKE_CXX_STANDARD introduced in CMake 3.1
This commit is contained in:
Koncord 2017-05-25 23:00:12 +08:00
parent 3e284a1139
commit cb5e88ce5c

View file

@ -1,6 +1,8 @@
project(masterserver) project(masterserver)
set(CMAKE_CXX_STANDARD 14) #set(CMAKE_CXX_STANDARD 14)
add_definitions(-std=gnu++14)
include_directories("./") include_directories("./")
set(SOURCE_FILES main.cpp MasterServer.cpp MasterServer.hpp RestServer.cpp RestServer.hpp) set(SOURCE_FILES main.cpp MasterServer.cpp MasterServer.hpp RestServer.cpp RestServer.hpp)