From cb5e88ce5ca00d3a5105237c3b7d7f179118cc7f Mon Sep 17 00:00:00 2001 From: Koncord Date: Thu, 25 May 2017 23:00:12 +0800 Subject: [PATCH] [Master] Use add_definitions Because CMAKE_CXX_STANDARD introduced in CMake 3.1 --- apps/master/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/master/CMakeLists.txt b/apps/master/CMakeLists.txt index 0613335c0..22a42a936 100644 --- a/apps/master/CMakeLists.txt +++ b/apps/master/CMakeLists.txt @@ -1,6 +1,8 @@ project(masterserver) -set(CMAKE_CXX_STANDARD 14) +#set(CMAKE_CXX_STANDARD 14) +add_definitions(-std=gnu++14) + include_directories("./") set(SOURCE_FILES main.cpp MasterServer.cpp MasterServer.hpp RestServer.cpp RestServer.hpp)