Skip to content

Commit

Permalink
Fix to make Boost_NO_BOOST_CMAKE a cache variable
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sisson <[email protected]>
  • Loading branch information
marksisson authored and cary-ilm committed Apr 29, 2020
1 parent b9199b5 commit 72cc6e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PyIlmBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ endif()
### NB: We are turning this on globally by default as the boost
### generated cmake config files seem to be broken and they
### cross-wire python 2 with 3 in the same variables
message(STATUS "Disabling boost-provided cmake config. If this causes problems, consider manually adjusting this in the CMakeLists.txt")
set(Boost_NO_BOOST_CMAKE ON)
option(Boost_NO_BOOST_CMAKE "Disable boost-provided cmake config" ON)
if(Boost_NO_BOOST_CMAKE)
message(STATUS "Disabling boost-provided cmake config. If this causes problems, consider setting Boost_NO_BOOST_CMAKE variable to OFF")
endif()

find_package(Boost OPTIONAL_COMPONENTS
python
Expand Down

0 comments on commit 72cc6e0

Please sign in to comment.