Repository: thrift Updated Branches: refs/heads/master 1e723d931 -> 9e78ed81a
THRIFT-3121 Librt does not exist on OSX Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/9e78ed81 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/9e78ed81 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/9e78ed81 Branch: refs/heads/master Commit: 9e78ed81a94dde86f4ac4207c39334255c102a5a Parents: 1e723d9 Author: Thomas Bartelmess <[email protected]> Authored: Fri May 1 13:57:44 2015 -0400 Committer: Roger Meier <[email protected]> Committed: Sat May 2 17:12:47 2015 +0200 ---------------------------------------------------------------------- lib/cpp/test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/9e78ed81/lib/cpp/test/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/lib/cpp/test/CMakeLists.txt b/lib/cpp/test/CMakeLists.txt index 8b27db8..5027ffe 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)
