From 2e43992b79af5b2c433befd0b27d82a59b8cef4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=B6jdh?= Date: Fri, 24 Oct 2025 12:24:32 +0200 Subject: [PATCH] moved rt linking to slsSupportObject --- slsDetectorSoftware/CMakeLists.txt | 4 +--- slsSupportLib/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/slsDetectorSoftware/CMakeLists.txt b/slsDetectorSoftware/CMakeLists.txt index 62aebfce3..04f30d27f 100755 --- a/slsDetectorSoftware/CMakeLists.txt +++ b/slsDetectorSoftware/CMakeLists.txt @@ -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 $<$:rt>) + set(DETECTOR_LIBRARY_TARGETS slsDetectorObject) diff --git a/slsSupportLib/CMakeLists.txt b/slsSupportLib/CMakeLists.txt index cb7d56f19..f7480f2d5 100755 --- a/slsSupportLib/CMakeLists.txt +++ b/slsSupportLib/CMakeLists.txt @@ -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 $<$: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}")