Skip to content

Commit

Permalink
Stop the CMP0167 spam
Browse files Browse the repository at this point in the history
  • Loading branch information
ManifoldFR committed Dec 3, 2024
1 parent f8b7d70 commit c256b58
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ else()
endif()
endif()

# The following was copied over from https://github.com/Simple-Robotics/aligator:
# Use BoostConfig module distributed by boost library instead of using FindBoost module distributed
# by CMake
if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
# find_package(SDFormat14) reset this policy (with cmake_minimum_required) and redefine the find_dependency macro.
# Then, futur call of this macro don't use the right version of this policy.
# To avoid that, we define the CMP0167 default value.
set(CMAKE_POLICY_DEFAULT_CMP0167 NEW)
endif()
# JRL-cmakemodule setup
include("${JRL_CMAKE_MODULES}/base.cmake")
include("${JRL_CMAKE_MODULES}/boost.cmake")
Expand Down

0 comments on commit c256b58

Please sign in to comment.