From 744b7cabca6f911169d12e71b2ec99b7dd9dcced Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Mon, 10 Nov 2025 12:24:45 +0100 Subject: [PATCH] Force use of Boost's config package in projectM's installed CMake config --- src/libprojectM/projectM4Config.cmake.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libprojectM/projectM4Config.cmake.in b/src/libprojectM/projectM4Config.cmake.in index 00244c4df..883a6738b 100644 --- a/src/libprojectM/projectM4Config.cmake.in +++ b/src/libprojectM/projectM4Config.cmake.in @@ -13,7 +13,11 @@ if(NOT "@ENABLE_EMSCRIPTEN@") # ENABLE_EMSCRIPTEN endif() endif() if("@ENABLE_BOOST_FILESYSTEM@") # ENABLE_BOOST_FILESYSTEM - find_dependency(Boost COMPONENTS Filesystem) + if(POLICY CMP0167) + cmake_policy(SET CMP0167 NEW) + endif() + + find_dependency(Boost CONFIG NO_MODULE COMPONENTS Filesystem) endif() if(CMAKE_SYSTEM_NAME STREQUAL "Windows") find_dependency(GLEW)