1
0
Fork 0

added c++11 for gcc and apple

This commit is contained in:
Achim Brandt 2014-04-25 14:00:16 +02:00
parent 708e0a40ae
commit 92d525994e
1 changed files with 2 additions and 1 deletions

View File

@ -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 ()