Update -std=c++0x to -std=c++11
This commit is contained in:
@@ -74,7 +74,7 @@ if(MSVC)
|
|||||||
add_definitions(/W4)
|
add_definitions(/W4)
|
||||||
add_definitions(/bigobj)
|
add_definitions(/bigobj)
|
||||||
else()
|
else()
|
||||||
add_definitions(-Wall -Wextra -Wshadow -pedantic -std=c++0x)
|
add_definitions(-Wall -Wextra -Wshadow -pedantic -std=c++11)
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
add_definitions(-Wno-sign-compare)
|
add_definitions(-Wno-sign-compare)
|
||||||
@@ -87,9 +87,9 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|||||||
|
|
||||||
if (USE_LIBCXX)
|
if (USE_LIBCXX)
|
||||||
add_definitions(-stdlib=libc++)
|
add_definitions(-stdlib=libc++)
|
||||||
set (EXTRA_LINKER_FLAGS -std=c++0x -stdlib=libc++)
|
set (EXTRA_LINKER_FLAGS -std=c++11 -stdlib=libc++)
|
||||||
else ()
|
else ()
|
||||||
set (EXTRA_LINKER_FLAGS -std=c++0x )
|
set (EXTRA_LINKER_FLAGS -std=c++11 )
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set (EXTRA_LINKER_FLAGS )
|
set (EXTRA_LINKER_FLAGS )
|
||||||
|
|||||||
Reference in New Issue
Block a user