build: (fixes #1156) Fix 'FindBoost module is removed' warning

See https://cmake.org/cmake/help/latest/policy/CMP0167.html for details.
This commit is contained in:
André Apitzsch
2024-11-21 11:56:36 +01:00
parent 97954dc0db
commit 2045a6af58

View File

@@ -846,6 +846,10 @@ macro(process_options)
endif()
endif()
# Use upstream boost package config with CMake 3.30 and above
if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()
mark_as_advanced(Boost_INCLUDE_DIR)
find_package(Boost)
if(${Boost_FOUND})