summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-04-18 15:04:32 +0200
committerdaniel0916 <theschokolps@gmail.com>2014-04-18 15:04:32 +0200
commitb239de66db5350319ac626700030bfd688851916 (patch)
tree2dd1b87460eb14678cda808c94002d5cebbc2e4a /SetFlags.cmake
parentFixed Errors (diff)
parentAdded performance test of the nether fort generator. (diff)
downloadcuberite-b239de66db5350319ac626700030bfd688851916.tar
cuberite-b239de66db5350319ac626700030bfd688851916.tar.gz
cuberite-b239de66db5350319ac626700030bfd688851916.tar.bz2
cuberite-b239de66db5350319ac626700030bfd688851916.tar.lz
cuberite-b239de66db5350319ac626700030bfd688851916.tar.xz
cuberite-b239de66db5350319ac626700030bfd688851916.tar.zst
cuberite-b239de66db5350319ac626700030bfd688851916.zip
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r--SetFlags.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index c5a3a0697..6c974ea94 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -46,6 +46,10 @@ macro(set_flags)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11")
else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++0x")
+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++0x")
+
add_flags_cxx("-pthread")
endif()
@@ -56,6 +60,10 @@ macro(set_flags)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11")
+ else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++0x")
+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++0x")
endif()
# We use a signed char (fixes #640 on RasPi)