diff --git a/Builds/CMake/CMakeFuncs.cmake b/Builds/CMake/CMakeFuncs.cmake index 0fc1b0c62c..34cbc1dcc4 100644 --- a/Builds/CMake/CMakeFuncs.cmake +++ b/Builds/CMake/CMakeFuncs.cmake @@ -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)