mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-23 15:14:40 +01: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:
parent
176d2c8a67
commit
2bc3c82745
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user