Skip to content

Commit

Permalink
cmake: Set policy CMP0167 to avoid warnings with CMake 3.30
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Jul 24, 2024
1 parent ee1eab6 commit 4659263
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ else()
endif()
endif()

# Use BoostConfig module distributed by boost library instead of using FindBoost module distributed
# by CMake
if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()
INCLUDE(${JRL_CMAKE_MODULES}/base.cmake)
INCLUDE(${JRL_CMAKE_MODULES}/boost.cmake)
INCLUDE(${JRL_CMAKE_MODULES}/ide.cmake)
Expand Down

0 comments on commit 4659263

Please sign in to comment.