mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Fix cmake not linking librt to perf-tools
This commit is contained in:
parent
7bc3e53b53
commit
f01bab6633
@ -51,6 +51,8 @@ check_library_exists(ws2 printf "" HAVE_WS2)
|
||||
check_library_exists(rpcrt4 printf "" HAVE_RPCRT4) # UuidCreateSequential
|
||||
check_library_exists(iphlpapi printf "" HAVE_IPHLAPI) # GetAdaptersAddresses
|
||||
|
||||
find_library(RT_LIBRARY rt)
|
||||
|
||||
find_package(Threads)
|
||||
|
||||
|
||||
@ -541,6 +543,10 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") # Why?
|
||||
add_executable(${perf-tool} perf/${perf-tool}.cpp)
|
||||
target_link_libraries(${perf-tool} libzmq)
|
||||
|
||||
if(RT_LIBRARY)
|
||||
target_link_libraries(${perf-tool} ${RT_LIBRARY})
|
||||
endif()
|
||||
|
||||
if(ZMQ_BUILD_FRAMEWORK)
|
||||
# Copy perf-tools binaries into Framework
|
||||
add_custom_command(
|
||||
|
Loading…
Reference in New Issue
Block a user