summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-04-25 19:32:39 +0200
committerarchshift <admin@archshift.com>2014-04-25 19:32:39 +0200
commit0f9e399351ed4d83d397ef71ea575c1fdf77e981 (patch)
treeda5efd944c7f7deb83b70d05c00f7dce09933774 /SetFlags.cmake
parentUse libc++ on OSX (diff)
downloadcuberite-0f9e399351ed4d83d397ef71ea575c1fdf77e981.tar
cuberite-0f9e399351ed4d83d397ef71ea575c1fdf77e981.tar.gz
cuberite-0f9e399351ed4d83d397ef71ea575c1fdf77e981.tar.bz2
cuberite-0f9e399351ed4d83d397ef71ea575c1fdf77e981.tar.lz
cuberite-0f9e399351ed4d83d397ef71ea575c1fdf77e981.tar.xz
cuberite-0f9e399351ed4d83d397ef71ea575c1fdf77e981.tar.zst
cuberite-0f9e399351ed4d83d397ef71ea575c1fdf77e981.zip
Diffstat (limited to '')
-rw-r--r--SetFlags.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index da69293f7..7b2b6379e 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -45,6 +45,7 @@ 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++")
else()
add_flags_cxx("-pthread")
endif()
@@ -188,9 +189,6 @@ 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")