diff --git a/deps/Boost/Boost.cmake b/deps/Boost/Boost.cmake index c5658d44c..c6fd753da 100644 --- a/deps/Boost/Boost.cmake +++ b/deps/Boost/Boost.cmake @@ -11,8 +11,8 @@ endif() set(_patch_command ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_LIST_DIR}/common.jam ./tools/build/src/tools/common.jam) if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - configure_file(${CMAKE_CURRENT_LIST_DIR}/user-config.jam boost-user-config.jam) set(_boost_toolset gcc) + configure_file(${CMAKE_CURRENT_LIST_DIR}/user-config.jam boost-user-config.jam) set(_patch_command ${_patch_command} && ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/boost-user-config.jam ./tools/build/src/tools/user-config.jam) elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") # https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html @@ -40,7 +40,9 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") elseif (APPLE) set(_boost_toolset "clang") else() - set(_boost_toolset "clang") + set(_boost_toolset clang) + configure_file(${CMAKE_CURRENT_LIST_DIR}/user-config.jam boost-user-config.jam) + set(_patch_command ${_patch_command} && ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/boost-user-config.jam ./tools/build/src/tools/user-config.jam) endif() elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel") set(_boost_toolset "intel") @@ -73,7 +75,7 @@ ProcessorCount(NPROC) file(TO_NATIVE_PATH ${DESTDIR}/usr/local/ _prefix) set(_boost_flags "") -if (UNIX) +if (UNIX) set(_boost_flags "cflags=-fPIC;cxxflags=-fPIC") elseif(APPLE) set(_boost_flags @@ -163,4 +165,4 @@ if ("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8") ) # Only override boost::Polygon Voronoi implementation with Vojtech's GMP hacks on 64bit platforms. list(APPEND _dep_list "dep_boost_polygon") -endif () \ No newline at end of file +endif () diff --git a/deps/Boost/user-config.jam b/deps/Boost/user-config.jam index eff13db28..6d86ef8df 100644 --- a/deps/Boost/user-config.jam +++ b/deps/Boost/user-config.jam @@ -1 +1 @@ -using gcc : : @CMAKE_CXX_COMPILER@ ; \ No newline at end of file +using @_boost_toolset@ : : @CMAKE_CXX_COMPILER@ ; \ No newline at end of file