mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-13 06:44:16 +02: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:
@@ -591,6 +591,10 @@ if(HAVE_IPHLAPI)
|
|||||||
target_link_libraries(libzmq iphlpapi)
|
target_link_libraries(libzmq iphlpapi)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(RT_LIBRARY)
|
||||||
|
target_link_libraries(libzmq ${RT_LIBRARY})
|
||||||
|
endif()
|
||||||
|
|
||||||
set(perf-tools local_lat
|
set(perf-tools local_lat
|
||||||
remote_lat
|
remote_lat
|
||||||
local_thr
|
local_thr
|
||||||
|
Reference in New Issue
Block a user