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

Merge branch '1800-fix-boost-build-with-clang' into 'develop'

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

Closes #1800

See merge request orfeotoolbox/otb!339
parents b8695a74 73ac55e4
Branches
Tags
No related merge requests found
......@@ -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(NOT APPLE AND "${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.
Please register or to comment