summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-04-25 16:58:59 +0200
committerarchshift <admin@archshift.com>2014-04-25 16:58:59 +0200
commitce505f6814fbed638bd638c46165cd8a09fb9872 (patch)
treec53a6aa175f1e80db51d84377211b97d0c5c64e1 /SetFlags.cmake
parentMerge pull request #932 from Howaner/Inventory (diff)
downloadcuberite-ce505f6814fbed638bd638c46165cd8a09fb9872.tar
cuberite-ce505f6814fbed638bd638c46165cd8a09fb9872.tar.gz
cuberite-ce505f6814fbed638bd638c46165cd8a09fb9872.tar.bz2
cuberite-ce505f6814fbed638bd638c46165cd8a09fb9872.tar.lz
cuberite-ce505f6814fbed638bd638c46165cd8a09fb9872.tar.xz
cuberite-ce505f6814fbed638bd638c46165cd8a09fb9872.tar.zst
cuberite-ce505f6814fbed638bd638c46165cd8a09fb9872.zip
Diffstat (limited to '')
-rw-r--r--SetFlags.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index c5a3a0697..da69293f7 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -188,6 +188,9 @@ macro(set_exe_flags)
add_flags_cxx("-ffast-math")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ if (APPLE)
+ add_flags_cxx("-stdlib=libc++")
+ endif()
# clang does not provide the __extern_always_inline macro and a part of libm depends on this when using fast-math
add_flags_cxx("-D__extern_always_inline=inline")
add_flags_cxx("-Werror -Weverything -Wno-c++98-compat-pedantic -Wno-string-conversion")