Skip to content

Commit

Permalink
cmake: Silent "Policy CMP0167 is not set"
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jul 15, 2024
1 parent 9323ce2 commit ef62deb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/module/AddBoostIfNeeded.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ function(add_boost_if_needed)
directory and other added INTERFACE properties.
]=]

# We rely on the CMake's FindBoost module.
# See: https://cmake.org/cmake/help/latest/policy/CMP0167.html
if(POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
endif()
set(Boost_NO_BOOST_CMAKE ON)
find_package(Boost 1.73.0 REQUIRED)
mark_as_advanced(Boost_INCLUDE_DIR)
Expand Down

0 comments on commit ef62deb

Please sign in to comment.