Skip to content

Commit

Permalink
Fix boost checks when a versioned python is not found
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Aug 15, 2019
1 parent c212722 commit d6c1767
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions PyIlmBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,12 @@ find_package(Boost OPTIONAL_COMPONENTS
python3
${PYILMBASE_BOOST_PY3_COMPONENT})
set(_pyilmbase_have_perver_boost)
string(TOUPPER ${PYILMBASE_BOOST_PY2_COMPONENT} PYILMBASE_PY2_UPPER)
string(TOUPPER ${PYILMBASE_BOOST_PY3_COMPONENT} PYILMBASE_PY3_UPPER)
if(PYILMBASE_BOOST_PY2_COMPONENT)
string(TOUPPER ${PYILMBASE_BOOST_PY2_COMPONENT} PYILMBASE_PY2_UPPER)
endif()
if(PYILMBASE_BOOST_PY3_COMPONENT)
string(TOUPPER ${PYILMBASE_BOOST_PY3_COMPONENT} PYILMBASE_PY3_UPPER)
endif()
if(Boost_PYTHON2_FOUND OR Boost_${PYILMBASE_PY2_UPPER}_FOUND)
set(_pyilmbase_have_perver_boost TRUE)
if(NOT Boost_${PYILMBASE_PY2_UPPER}_FOUND)
Expand Down

0 comments on commit d6c1767

Please sign in to comment.