moved rt linking to slsSupportObject
All checks were successful
Build on RHEL9 / build (push) Successful in 3m29s
Build on RHEL8 / build (push) Successful in 4m43s

This commit is contained in:
Erik Fröjdh
2025-10-24 12:24:32 +02:00
parent 7380509bbc
commit 2e43992b79
2 changed files with 5 additions and 3 deletions

View File

@@ -31,9 +31,7 @@ target_link_libraries(slsDetectorObject
PRIVATE
slsProjectWarnings
)
#RH8 glibc 2.28, RH9 glibc 2.34 linking rt is only needed with glibc < 2.34
#but we do it for all Linux builds to avoid too many conditionals
target_link_libraries (slsDetectorObject PUBLIC $<$<PLATFORM_ID:Linux>:rt>)
set(DETECTOR_LIBRARY_TARGETS slsDetectorObject)

View File

@@ -99,6 +99,10 @@ target_link_libraries(slsSupportObject
md5sls
)
#RH8 glibc 2.28, RH9 glibc 2.34 linking rt is only needed with glibc < 2.34
#but we do it for all Linux builds to avoid too many conditionals
target_link_libraries (slsSupportObject PUBLIC $<$<PLATFORM_ID:Linux>:rt>)
#Treat both vendored and system zmq as interface for receiver binaries
if(SLS_USE_SYSTEM_ZMQ)
message(STATUS "slsSupportLib using ZEROMQ_TARGET=${ZEROMQ_TARGET}")