Better test of boost
This commit is contained in:
parent
3773c1ab43
commit
8d91ec20fa
10
external/external_build.cmake
vendored
10
external/external_build.cmake
vendored
@ -249,10 +249,14 @@ 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} VERSION_GREATER_EQUAL 1.70.0)
|
||||
set(Boost_DEP Boost::headers)
|
||||
set(Boost_TARGET Boost::headers)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user