summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorlinnemannr <linnemannr@gmail.com>2015-05-25 04:07:31 +0200
committerlinnemannr <linnemannr@gmail.com>2015-05-25 04:07:31 +0200
commit5049fd0fbf2fe2e54d86d9d0f704d5daa301f819 (patch)
tree58686e599ffdb26697fbca7cac3cad5f0bd5d146 /SetFlags.cmake
parentMerge pull request #2117 from Seadragon91/clang_errors (diff)
downloadcuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar.gz
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar.bz2
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar.lz
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar.xz
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar.zst
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.zip
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r--SetFlags.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index b05585f7d..92046b688 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -240,6 +240,11 @@ macro(set_exe_flags)
# we support non-IEEE 754 fpus so can make no guarentees about error
add_flags_cxx("-ffast-math")
+ if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+ # backtrace() and friends are in libexecinfo
+ add_flags_lnk("-lexecinfo")
+ endif()
+
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
get_clang_version()
if ("${CLANG_VERSION}" VERSION_LESS 3.0)