diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-21 08:08:05 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-21 08:08:05 -0700 |
commit | decec093169c93a8e6d033ff9971b0999a2766a3 (patch) | |
tree | 4564fecaaeead3f75212215c9252b26b16b44ecf /templates/CMakeLists.txt.template | |
parent | 6984e1dc5e2687edd69cf3d9c761d6c8386b1fb8 (diff) | |
parent | 77a4c52cbf3706191640e117b1f9bccddd64f1ac (diff) |
Merge github.com:grpc/grpc into c++lame
Diffstat (limited to 'templates/CMakeLists.txt.template')
-rw-r--r-- | templates/CMakeLists.txt.template | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template index c647ea5707..88e518f132 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template @@ -314,8 +314,10 @@ set(CMAKE_CXX_FLAGS "<%text>${CMAKE_CXX_FLAGS}</%text> -std=c++11") endif() - if(UNIX) - set(_gRPC_ALLTARGETS_LIBRARIES dl rt m pthread) + if(_gRPC_PLATFORM_MAC) + set(_gRPC_ALLTARGETS_LIBRARIES <%text>${CMAKE_DL_LIBS}</%text> m pthread) + elseif(UNIX) + set(_gRPC_ALLTARGETS_LIBRARIES <%text>${CMAKE_DL_LIBS}</%text> rt m pthread) endif() if(WIN32 AND MSVC) |