Skip to content

Commit

Permalink
CMake: for CMake 3.30 onwards set Boost Config policy to true
Browse files Browse the repository at this point in the history
  • Loading branch information
tamiko committed Jan 31, 2025
1 parent 69a5e48 commit d7fec25
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ if(POLICY CMP0075)
cmake_policy(SET CMP0075 NEW)
endif()

if(POLICY CMP0167)
# Introduced in CMake 3.30: When set to true then CMake uses the Boost
# CMake Config installed with Boost instead of using the FindBoost.cmake
# module installed with CMake.
cmake_policy(SET CMP0167 NEW)
endif()

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)

#
Expand Down

0 comments on commit d7fec25

Please sign in to comment.