avoid c-ares dependency on libnsl

pull/17271/head
Jan Tattermusch 6 years ago
parent 802d89fa59
commit 64c5f313ef
  1. 4
      cmake/cares.cmake

@ -18,6 +18,10 @@ if("${gRPC_CARES_PROVIDER}" STREQUAL "module")
endif() endif()
set(CARES_SHARED OFF CACHE BOOL "disable shared library") set(CARES_SHARED OFF CACHE BOOL "disable shared library")
set(CARES_STATIC ON CACHE BOOL "link cares statically") 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) add_subdirectory(third_party/cares/cares)
if(TARGET c-ares) if(TARGET c-ares)

Loading…
Cancel
Save