Skip to content

Commit

Permalink
Require at least boost 1.71
Browse files Browse the repository at this point in the history
  • Loading branch information
anaegel committed Oct 6, 2021
1 parent df16c21 commit a68abe6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/ug_includes.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,11 @@ if(INTERNAL_BOOST)
set(INTERNAL_BOOST_PATH ${UG_ROOT_PATH}/externals/BoostForUG4/)
set(BOOST_ROOT ${INTERNAL_BOOST_PATH})
set(Boost_INCLUDE_DIRS ${INTERNAL_BOOST_PATH})
message(STATUS "Info: Internal Boost ${Boost_ADDITIONAL_VERSIONS}")
set(Boost_MAJOR_VERSION 1)
set(Boost_MINOR_VERSION 71)
message(STATUS "Info: Internal Boost ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}")
else(INTERNAL_BOOST)
find_package(Boost 1.58 REQUIRED) # automatic detection
find_package(Boost 1.71 REQUIRED) # automatic detection

if(Boost_FOUND)
message(STATUS "Info: Found Boost ${Boost_VERSION} in <${Boost_INCLUDE_DIRS}>")
Expand Down

0 comments on commit a68abe6

Please sign in to comment.