2014-04-06 21:42:48 +05:30
|
|
|
if(__USECXX11_CMAKE__)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
set(__USECXX11_CMAKE__ TRUE)
|
|
|
|
|
|
|
|
if(APPLE)
|
2014-04-12 21:41:30 +05:30
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -std=c++11")
|
2014-04-06 21:42:48 +05:30
|
|
|
elseif(UNIX)
|
|
|
|
# assume GCC, add C++0x/C++11 stuff
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
elseif(MINGW)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
|
|
|
|
endif()
|