From b2a8bbd89b60ed4f3d84f0a71a2dc90389ec98c0 Mon Sep 17 00:00:00 2001 From: Johan Mabille Date: Wed, 10 Jan 2018 21:07:25 +0100 Subject: [PATCH] removing hard-coded path of librt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d8531255..d963219b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -870,7 +870,7 @@ if (BUILD_SHARED) endif () if (RT_LIBRARY) - target_link_libraries (libzmq ${RT_LIBRARY}) + target_link_libraries (libzmq -lrt) endif () endif () @@ -894,7 +894,7 @@ if (BUILD_SHARED) target_link_libraries (${perf-tool} libzmq ${OPTIONAL_LIBRARIES}) if (RT_LIBRARY) - target_link_libraries (${perf-tool} ${RT_LIBRARY}) + target_link_libraries (${perf-tool} -lrt) endif () if (ZMQ_BUILD_FRAMEWORK)