added option to use system zmq (#1318)

* added option to use system zmq
* added notes in release.txt
This commit is contained in:
Erik Fröjdh
2025-10-21 11:15:51 +02:00
committed by GitHub
parent 5041fd7fef
commit db91f06c02
4 changed files with 122 additions and 44 deletions

View File

@@ -93,9 +93,16 @@ target_link_libraries(slsSupportObject
PRIVATE
slsProjectWarnings
md5sls
"$<BUILD_INTERFACE:libzmq-static>"
)
#Treat both vendored and system zmq as interface for receiver binaries
if(SLS_USE_SYSTEM_ZMQ)
message(STATUS "slsSupportLib using ZEROMQ_TARGET=${ZEROMQ_TARGET}")
target_link_libraries(slsSupportObject PRIVATE "${ZEROMQ_TARGET}")
else()
target_link_libraries(slsSupportObject PRIVATE "$<BUILD_INTERFACE:libzmq-static>")
endif()
if (SLS_USE_TESTS)
add_subdirectory(tests)
endif(SLS_USE_TESTS)