Use Boost::boost which has better cmake compatiblity

This commit is contained in:
Guilhem Lavaux 2020-09-22 15:27:12 +03:00
parent 7fce73ef6c
commit 8658acfde6

View File

@ -255,8 +255,8 @@ ELSE (INTERNAL_BOOST)
set(Boost_VERSION ${TMP_MAJOR}.${TMP_MINOR}.${TMP_PATCHLEVEL}) set(Boost_VERSION ${TMP_MAJOR}.${TMP_MINOR}.${TMP_PATCHLEVEL})
ENDIF() ENDIF()
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::boost)
set(Boost_TARGET Boost::headers) set(Boost_TARGET Boost::boost)
endif() endif()
endif() endif()
if (NOT Boost_FOUND) if (NOT Boost_FOUND)