mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 07:25:51 +00:00
Add policy check to FindBoost
This commit is contained in:
committed by
Nik Bougalis
parent
c7d90bfddd
commit
145326c00c
@@ -1316,11 +1316,13 @@ if(WIN32)
|
||||
INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_NO_LIB")
|
||||
endif()
|
||||
|
||||
cmake_policy(GET CMP0074 _Boost_CMP0074)
|
||||
if(NOT "x${_Boost_CMP0074}x" STREQUAL "xNEWx")
|
||||
_Boost_CHECK_SPELLING(Boost_ROOT)
|
||||
endif()
|
||||
unset(_Boost_CMP0074)
|
||||
if (POLICY CMP0074)
|
||||
cmake_policy(GET CMP0074 _Boost_CMP0074)
|
||||
if(NOT "x${_Boost_CMP0074}x" STREQUAL "xNEWx")
|
||||
_Boost_CHECK_SPELLING(Boost_ROOT)
|
||||
endif()
|
||||
unset(_Boost_CMP0074)
|
||||
endif ()
|
||||
_Boost_CHECK_SPELLING(Boost_LIBRARYDIR)
|
||||
_Boost_CHECK_SPELLING(Boost_INCLUDEDIR)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user