From 2045a6af5869795dfef02eecbdffda8dee49c240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Thu, 21 Nov 2024 11:56:36 +0100 Subject: [PATCH] build: (fixes #1156) Fix 'FindBoost module is removed' warning See https://cmake.org/cmake/help/latest/policy/CMP0167.html for details. --- build-support/macros-and-definitions.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build-support/macros-and-definitions.cmake b/build-support/macros-and-definitions.cmake index 150b3e7e4..7ad2517a3 100644 --- a/build-support/macros-and-definitions.cmake +++ b/build-support/macros-and-definitions.cmake @@ -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})