Commit 2bc3c827 authored by Josh Blum's avatar Josh Blum

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.
parent 176d2c8a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment