Skip to content

Commit

Permalink
add boost policy for cmake 3.30
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Jakubowski <[email protected]>
  • Loading branch information
tomjakubowski committed Sep 29, 2024
1 parent 01bf244 commit 75ccd09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cpp/perspective/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ cmake_policy(SET CMP0074 NEW)
# instead of the latest version installed.
cmake_policy(SET CMP0094 NEW)

# https://cmake.org/cmake/help/latest/policy/CMP0167.html
# cmake deprecated their built-in FindBoost module in favor of one provided by Boost.
# The OLD behavior of this policy is for find_package(Boost) to load CMake's FindBoost module.
# The NEW behavior is for find_package(Boost) to search for the upstream BoostConfig.cmake.
if (${CMAKE_VERSION} VERSION_GREATER "3.29")
cmake_policy(SET CMP0167 OLD)
endif()

if(NOT DEFINED PSP_CMAKE_MODULE_PATH)
set(PSP_CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../cmake")
endif()
Expand Down

0 comments on commit 75ccd09

Please sign in to comment.