Skip to content

Commit

Permalink
Found a case where we need to fall back on optional components.
Browse files Browse the repository at this point in the history
  • Loading branch information
lamiller0 committed Jun 9, 2021
1 parent 04b0681 commit b82b487
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/PyAlembic/CMakeLists.txt
Expand Up @@ -48,6 +48,12 @@ IF (NOT Boost_FOUND)
FIND_PACKAGE(Boost 1.53.0 COMPONENTS "python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}")
ENDIF()

# hit a weird case where boost python released seperately from the other boost modules in 1.70 could
# not find it unless it was optional, so fall back on this
IF (NOT Boost_FOUND)
FIND_PACKAGE(Boost 1.53.0 OPTIONAL_COMPONENTS "python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}")
ENDIF()

IF (Boost_FOUND)
IF (Boost_VERSION_MACRO LESS 105300)
MESSAGE(FATAL_ERROR "Boost VERSION IS TOO OLD.")
Expand Down

0 comments on commit b82b487

Please sign in to comment.