0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 01:37:56 +08:00

add linking to librt under cmake build - fixes missing symbol

The libzmq library itself uses clock_gettime and should link w/ -lrt on linux.
Caught this issue on on Ubuntu 12.04 LTS.
This commit is contained in:
Josh Blum 2014-02-24 11:07:28 -08:00
parent 176d2c8a67
commit 2bc3c82745

View File

@ -591,6 +591,10 @@ if(HAVE_IPHLAPI)
target_link_libraries(libzmq iphlpapi)
endif()
if(RT_LIBRARY)
target_link_libraries(libzmq ${RT_LIBRARY})
endif()
set(perf-tools local_lat
remote_lat
local_thr