Skip to content
Snippets Groups Projects
Commit 05e7d2a0 authored by Julien Michel's avatar Julien Michel
Browse files

COMP: Set boost configure specific options when building with clang on unix systems

parent 09151663
No related branches found
No related tags found
2 merge requests!621Release 7.0 (master),!339COMP: Set boost configure specific options when building with clang on unix systems
......@@ -47,9 +47,17 @@ set(BOOST_SB_CONFIG
--with-thread
)
set(BOOST_BOOTSTRAP_OPTIONS "")
if(UNIX)
set(BOOST_BOOTSTRAP_FILE "./bootstrap.sh")
set(BOOST_B2_EXE "./b2")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(BOOST_SB_CONFIG
${BOOST_SB_CONFIG}
toolset=clang)
set(BOOST_BOOTSTRAP_OPTIONS "--with-toolset=clang")
endif()
else()
set(BOOST_BOOTSTRAP_FILE "bootstrap.bat")
set(BOOST_B2_EXE "b2.exe")
......@@ -57,7 +65,7 @@ endif()
set(BOOST_CONFIGURE_COMMAND ${CMAKE_COMMAND}
-E chdir ${BOOST_SB_SRC}
${BOOST_BOOTSTRAP_FILE}
${BOOST_BOOTSTRAP_FILE} ${BOOST_BOOTSTRAP_OPTIONS}
--prefix=${SB_INSTALL_PREFIX}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment