From 6cce60be0a6391fb06e403d3d3904199bf760112 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Nov 2026 22:27:55 +0000 Subject: [PATCH] refactor(cmake): remove the Boost::boost fallback - Boost::headers exists in every supported FindBoost and BoostConfig - The else branch could never run Co-Authored-By: Claude Sonnet 5.5 --- cmake/FairMQDependencies.cmake | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmake/FairMQDependencies.cmake b/cmake/FairMQDependencies.cmake index 24ef0c07..6d7819ad 100644 --- a/cmake/FairMQDependencies.cmake +++ b/cmake/FairMQDependencies.cmake @@ -77,11 +77,7 @@ if(PROJECT_PACKAGE_DEPENDENCIES) set(FairLogger_PREFIX ${FairLogger_ROOT}) endif() elseif(${dep} STREQUAL Boost) - if(TARGET Boost::headers) - get_target_property(boost_include Boost::headers INTERFACE_INCLUDE_DIRECTORIES) - else() - get_target_property(boost_include Boost::boost INTERFACE_INCLUDE_DIRECTORIES) - endif() + get_target_property(boost_include Boost::headers INTERFACE_INCLUDE_DIRECTORIES) get_filename_component(Boost_PREFIX ${boost_include}/.. ABSOLUTE) unset(boost_include) elseif(NOT ${dep}_PREFIX)