mirror of https://gitee.com/bigwinds/arangodb
added c++11 for gcc and apple
This commit is contained in:
parent
708e0a40ae
commit
92d525994e
|
@ -51,10 +51,11 @@ if (CMAKE_COMPILER_IS_GNUCC)
|
|||
endif ()
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98 -g")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g")
|
||||
endif ()
|
||||
|
||||
if (APPLE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g")
|
||||
add_definitions("-Wno-deprecated-declarations")
|
||||
endif ()
|
||||
|
||||
|
|
Loading…
Reference in New Issue