diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2018-11-21 09:47:25 +0100 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2018-11-21 11:13:47 +0100 |
commit | 64c5f313ef9c38c1e7f13b3560c0d48f08eea3eb (patch) | |
tree | d1959325af456cb5050dcf8fc70ae067fb712d69 /cmake | |
parent | 802d89fa59f77db60ab9e27d0145f986e62dbcf7 (diff) |
avoid c-ares dependency on libnsl
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/cares.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/cares.cmake b/cmake/cares.cmake index 3d4a0cae76..4ea0d8725d 100644 --- a/cmake/cares.cmake +++ b/cmake/cares.cmake @@ -18,6 +18,10 @@ if("${gRPC_CARES_PROVIDER}" STREQUAL "module") endif() set(CARES_SHARED OFF CACHE BOOL "disable shared library") set(CARES_STATIC ON CACHE BOOL "link cares statically") + if(gRPC_BACKWARDS_COMPATIBILITY_MODE) + # See https://github.com/grpc/grpc/issues/17255 + set(HAVE_LIBNSL OFF CACHE BOOL "avoid cares dependency on libnsl") + endif() add_subdirectory(third_party/cares/cares) if(TARGET c-ares) |