Force boost static linking for macos builds

This commit is contained in:
Mike Ellery
2018-01-17 11:40:39 -08:00
committed by Scott Schurr
parent 0ec66b3dbc
commit 2a4eac6eb8

View File

@@ -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)