2015-06-06 18:56:51 +01:00
|
|
|
if(__USECXX14_CMAKE__)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
set(__USECXX14_CMAKE__ TRUE)
|
|
|
|
|
|
|
|
if(APPLE)
|
2015-06-06 20:00:37 +01:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -std=c++1y")
|
2015-06-06 18:56:51 +01:00
|
|
|
elseif(UNIX)
|
|
|
|
# assume GCC, add C++0x/C++11 stuff
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
|
|
|
elseif(MINGW)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14")
|
|
|
|
endif()
|