summaryrefslogtreecommitdiff
path: root/lib/cpp
diff options
context:
space:
mode:
authorThomas Bartelmess <tbartelmess@marketcircle.com>2015-05-01 13:57:44 -0400
committerRoger Meier <roger@apache.org>2015-05-02 17:12:47 +0200
commit9e78ed81a94dde86f4ac4207c39334255c102a5a (patch)
treee2f96c9f2c1d0130d84a97db1330d5f439aa5ddc /lib/cpp
parent1e723d931e92652e4ccb1385709258759ae5bc54 (diff)
downloadthrift-9e78ed81a94dde86f4ac4207c39334255c102a5a.tar.gz
THRIFT-3121 Librt does not exist on OSX
Diffstat (limited to 'lib/cpp')
-rw-r--r--lib/cpp/test/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cpp/test/CMakeLists.txt b/lib/cpp/test/CMakeLists.txt
index 8b27db85d..5027ffef4 100644
--- a/lib/cpp/test/CMakeLists.txt
+++ b/lib/cpp/test/CMakeLists.txt
@@ -89,7 +89,7 @@ target_link_libraries(TSocketInterruptTest
${Boost_LIBRARIES}
)
LINK_AGAINST_THRIFT_LIBRARY(TSocketInterruptTest thrift)
-if (NOT MSVC)
+if (NOT MSVC AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(TSocketInterruptTest -lrt)
endif ()
add_test(NAME TSocketInterruptTest COMMAND TSocketInterruptTest)
@@ -100,7 +100,7 @@ target_link_libraries(TServerIntegrationTest
${Boost_LIBRARIES}
)
LINK_AGAINST_THRIFT_LIBRARY(TServerIntegrationTest thrift)
-if (NOT MSVC)
+if (NOT MSVC AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(TServerIntegrationTest -lrt)
endif ()
add_test(NAME TServerIntegrationTest COMMAND TServerIntegrationTest)