diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-06-06 19:56:51 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-06-06 19:56:51 +0200 |
commit | 678da0b639603295169d4b15988ea0832a9f2e95 (patch) | |
tree | bb3742c6e3355537a7ca79380faeb699470ac183 /cmake | |
parent | db69a3dacd82ff364cbf85d3218006392d09965f (diff) | |
download | MultiMC-678da0b639603295169d4b15988ea0832a9f2e95.tar MultiMC-678da0b639603295169d4b15988ea0832a9f2e95.tar.gz MultiMC-678da0b639603295169d4b15988ea0832a9f2e95.tar.lz MultiMC-678da0b639603295169d4b15988ea0832a9f2e95.tar.xz MultiMC-678da0b639603295169d4b15988ea0832a9f2e95.zip |
GH-1052 switch over to C++14 everywhere
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/UseCXX14.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/UseCXX14.cmake b/cmake/UseCXX14.cmake new file mode 100644 index 00000000..a45f3be7 --- /dev/null +++ b/cmake/UseCXX14.cmake @@ -0,0 +1,13 @@ +if(__USECXX14_CMAKE__) + return() +endif() +set(__USECXX14_CMAKE__ TRUE) + +if(APPLE) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -std=c++14") +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() |