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}")