Skip to content

Commit

Permalink
Add policy check to FindBoost
Browse files Browse the repository at this point in the history
  • Loading branch information
mellery451 committed Aug 6, 2019
1 parent 1615980 commit c9eb8c3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Builds/CMake/FindBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c9eb8c3

Please sign in to comment.