Using -std=c++11 compiler flag

This commit is contained in:
Pavel Kirienko 2015-06-09 22:48:19 +03:00
parent 6f22745e55
commit 44b84ea5cb
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ if (COMPILER_IS_GCC_COMPATIBLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03 -Wno-variadic-macros -Wno-long-long")
else ()
message(STATUS "Using C++11 (pass USE_CPP03=1 to override)")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif ()
endif ()

View File

@ -36,7 +36,7 @@ endif ()
# Applications - tests, tools.
#
include_directories(include)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -std=c++0x") # GCC or Clang
set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -std=c++11") # GCC or Clang
#
# Tests