refactor(cmake): link CMAKE_DL_LIBS and Boost::headers

- Use the platform variable instead of the literal dl
- Use Boost::headers instead of the legacy alias Boost::boost

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-09 22:43:43 +00:00
committed by Dennis Klein
parent 268fcafcc6
commit 44bdfe9ddc

View File

@@ -211,9 +211,9 @@ if(BUILD_FAIRMQ)
PUBLIC # libFairMQ AND consumers of libFairMQ link aginst public dependencies PUBLIC # libFairMQ AND consumers of libFairMQ link aginst public dependencies
Threads::Threads Threads::Threads
dl ${CMAKE_DL_LIBS}
$<$<PLATFORM_ID:Linux>:rt> $<$<PLATFORM_ID:Linux>:rt>
Boost::boost Boost::headers
Boost::program_options Boost::program_options
Boost::filesystem # still needed for Boost.DLL Boost::filesystem # still needed for Boost.DLL
Boost::regex Boost::regex
@@ -280,7 +280,7 @@ if(BUILD_FAIRMQ)
target_link_libraries(fairmq-shmmonitor PUBLIC target_link_libraries(fairmq-shmmonitor PUBLIC
Threads::Threads Threads::Threads
$<$<PLATFORM_ID:Linux>:rt> $<$<PLATFORM_ID:Linux>:rt>
Boost::boost Boost::headers
Boost::date_time Boost::date_time
$<$<NOT:${FAIRMQ_HAS_STD_FILESYSTEM}>:Boost::filesystem> $<$<NOT:${FAIRMQ_HAS_STD_FILESYSTEM}>:Boost::filesystem>
Boost::program_options Boost::program_options