Skip to content

Commit

Permalink
Force boost static linking for macos builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mellery451 authored and scottschurr committed Jan 18, 2018
1 parent 0ec66b3 commit 2a4eac6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Builds/CMake/CMakeFuncs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,11 @@ macro(use_boost)
set(BOOST_ROOT $ENV{CLANG_BOOST_ROOT})
endif()


if (static)
# boost dynamic libraries don't trivially support @rpath
# linking right now (cmake's default), so just force
# static linking for macos, or if requested on linux
# by flag
if (static OR APPLE)
set(Boost_USE_STATIC_LIBS on)
endif()
set(Boost_USE_MULTITHREADED on)
Expand Down

0 comments on commit 2a4eac6

Please sign in to comment.