Better test of boost

This commit is contained in:
Guilhem Lavaux 2020-04-26 09:36:40 +02:00
parent 3773c1ab43
commit 8d91ec20fa

View File

@ -249,11 +249,15 @@ ELSE (INTERNAL_BOOST)
find_package(Boost 1.69 QUIET)
if (NOT Boost_FOUND)
cmessage(CWARNING "Boost >= 1.69 was not found")
else()
cmessage(STATUS "Boost has been found (version=${Boost_VERSION})")
endif()
if (Boost_VERSION)
if (${Boost_VERSION} VERSION_GREATER_EQUAL 1.70.0)
set(Boost_DEP Boost::headers)
set(Boost_TARGET Boost::headers)
endif()
endif()
endif (INTERNAL_BOOST)
mark_as_advanced(Boost_INCLUDE_DIRS Boost_LIBRARIES)