diff --git a/deps/Boost/Boost.cmake b/deps/Boost/Boost.cmake index 15792d5a75..d33e891f6a 100644 --- a/deps/Boost/Boost.cmake +++ b/deps/Boost/Boost.cmake @@ -37,6 +37,8 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if (WIN32) set(_boost_toolset "clang-win") + elseif (APPLE) + set(_boost_toolset "clang") else() set(_boost_toolset "clang") endif() @@ -103,11 +105,16 @@ if (NOT _boost_variants) set(_boost_variants release) endif() +set(_boost_layout system) +if (MSVC) + set(_boost_layout versioned) +endif () + set(_build_cmd ${_build_cmd} ${_boost_flags} -j${NPROC} ${_libs} - --layout=versioned + --layout=${_boost_layout} --debug-configuration toolset=${_boost_toolset} address-model=${_bits}