mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 21:15:19 +00:00
14 lines
347 B
CMake
14 lines
347 B
CMake
if(__USECXX14_CMAKE__)
|
|
return()
|
|
endif()
|
|
set(__USECXX14_CMAKE__ TRUE)
|
|
|
|
if(APPLE)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -std=c++1y")
|
|
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()
|