Force use of Boost's config package in projectM's installed CMake config

This commit is contained in:
Kai Blaschke
2025-11-10 12:24:45 +01:00
parent ddf607a3d3
commit 744b7cabca

View File

@ -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)