diff options
author | Alexander Harkness <me@bearbin.net> | 2015-05-25 08:07:18 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2015-05-25 08:07:18 +0200 |
commit | 150024265e10cc5f5769d5638c10078ec493f210 (patch) | |
tree | 72dbacde2f6f5a25db9d3f3c9800280ba15ad130 /SetFlags.cmake | |
parent | Merge pull request #2114 from cengizIO/master (diff) | |
parent | Support building on FreeBSD (diff) | |
download | cuberite-150024265e10cc5f5769d5638c10078ec493f210.tar cuberite-150024265e10cc5f5769d5638c10078ec493f210.tar.gz cuberite-150024265e10cc5f5769d5638c10078ec493f210.tar.bz2 cuberite-150024265e10cc5f5769d5638c10078ec493f210.tar.lz cuberite-150024265e10cc5f5769d5638c10078ec493f210.tar.xz cuberite-150024265e10cc5f5769d5638c10078ec493f210.tar.zst cuberite-150024265e10cc5f5769d5638c10078ec493f210.zip |
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r-- | SetFlags.cmake | 5 |
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) |