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 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-09 22:27:55 +00:00
committed by Dennis Klein
parent a167e96dbd
commit 6cce60be0a

View File

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