Skip to content

Commit

Permalink
add check for maximum boost version
Browse files Browse the repository at this point in the history
  • Loading branch information
xloem committed Jan 23, 2021
1 parent 07ef377 commit 67bafee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeModules/Boost/BoostConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
MESSAGE(STATUS "Using custom FindBoost config")

find_package(Boost 1.58 REQUIRED COMPONENTS ${Boost_FIND_COMPONENTS})
IF("${Boost_VERSION}" VERSION_GREATER_EQUAL "1.70")
MESSAGE(FATAL_ERROR "Boost version must be at least 1.58 and at most 1.69 .")
ENDIF()

# Inject `pthread` dependency to Boost if needed
if (UNIX AND NOT CYGWIN)
Expand Down

0 comments on commit 67bafee

Please sign in to comment.