Better test of boost
This commit is contained in:
parent
3773c1ab43
commit
8d91ec20fa
4
external/external_build.cmake
vendored
4
external/external_build.cmake
vendored
@ -249,11 +249,15 @@ ELSE (INTERNAL_BOOST)
|
|||||||
find_package(Boost 1.69 QUIET)
|
find_package(Boost 1.69 QUIET)
|
||||||
if (NOT Boost_FOUND)
|
if (NOT Boost_FOUND)
|
||||||
cmessage(CWARNING "Boost >= 1.69 was not found")
|
cmessage(CWARNING "Boost >= 1.69 was not found")
|
||||||
|
else()
|
||||||
|
cmessage(STATUS "Boost has been found (version=${Boost_VERSION})")
|
||||||
endif()
|
endif()
|
||||||
|
if (Boost_VERSION)
|
||||||
if (${Boost_VERSION} VERSION_GREATER_EQUAL 1.70.0)
|
if (${Boost_VERSION} VERSION_GREATER_EQUAL 1.70.0)
|
||||||
set(Boost_DEP Boost::headers)
|
set(Boost_DEP Boost::headers)
|
||||||
set(Boost_TARGET Boost::headers)
|
set(Boost_TARGET Boost::headers)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
endif (INTERNAL_BOOST)
|
endif (INTERNAL_BOOST)
|
||||||
mark_as_advanced(Boost_INCLUDE_DIRS Boost_LIBRARIES)
|
mark_as_advanced(Boost_INCLUDE_DIRS Boost_LIBRARIES)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user