Skip to content

Commit

Permalink
Don't require clang for other toolset.
Browse files Browse the repository at this point in the history
  • Loading branch information
o01eg committed Nov 23, 2019
1 parent 88babdb commit 86cf84a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,15 @@ configure_file(
boost-config.jam
)

if(BOOST_TOOLSET EQUAL clang)
configure_file(
boost-config-clang.jam.in
boost-config-clang.jam
)
file(READ ${CMAKE_BINARY_DIR}/boost-config-clang.jam BOOST_CONFIG_CONTENTS)
file(APPEND ${CMAKE_BINARY_DIR}/boost-config.jam "${BOOST_CONFIG_CONTENTS}")
endif()

ExternalProject_PatchSet(boost BOOST_PATCHSET)
ExternalProject_Add(boost
DEPENDS patch zlib python python3
Expand Down
7 changes: 7 additions & 0 deletions boost-config-clang.jam.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# detect the location of the Mac OSX SDK.
using clang
: # version (not used)
: # cmd (compiler; not used)
: <root>@BOOST_OSX_SYSROOT@
;

6 changes: 0 additions & 6 deletions boost-config.jam.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,3 @@ using python
: @PYTHON3_INSTALL_DIR@/lib # libraries
;

# detect the location of the Mac OSX SDK.
using clang
: # version (not used)
: # cmd (compiler; not used)
: <root>@BOOST_OSX_SYSROOT@
;

0 comments on commit 86cf84a

Please sign in to comment.