summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-04-26 13:45:13 +0200
committerMattes D <github@xoft.cz>2014-04-26 13:45:13 +0200
commite5d08aa9a93e179eb10b0c983437aca058d346e0 (patch)
tree2f8f0285c4a619ea83dff76c817f692e5aafeb28 /SetFlags.cmake
parentMerge pull request #920 from axisd/master (diff)
parentNeeds the -stdlib linker flag too. (diff)
downloadcuberite-e5d08aa9a93e179eb10b0c983437aca058d346e0.tar
cuberite-e5d08aa9a93e179eb10b0c983437aca058d346e0.tar.gz
cuberite-e5d08aa9a93e179eb10b0c983437aca058d346e0.tar.bz2
cuberite-e5d08aa9a93e179eb10b0c983437aca058d346e0.tar.lz
cuberite-e5d08aa9a93e179eb10b0c983437aca058d346e0.tar.xz
cuberite-e5d08aa9a93e179eb10b0c983437aca058d346e0.tar.zst
cuberite-e5d08aa9a93e179eb10b0c983437aca058d346e0.zip
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r--SetFlags.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index c5a3a0697..4eed529bd 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -45,6 +45,8 @@ 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")
+ add_flags_cxx("-stdlib=libc++")
+ add_flags_lnk("-stdlib=libc++")
else()
add_flags_cxx("-pthread")
endif()