Honor CARES_ROOT_DIR

Honor CARES_ROOT_DIR in the add_subdirectory() call.

Fixes: #17876
pull/20630/head
Kyle Edwards 5 years ago
parent c867a3d126
commit 5f4b8c350d
  1. 2
      cmake/cares.cmake

@ -22,7 +22,7 @@ if("${gRPC_CARES_PROVIDER}" STREQUAL "module")
# 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("${CARES_ROOT_DIR}" third_party/cares/cares)
if(TARGET c-ares)
set(_gRPC_CARES_LIBRARIES c-ares)

Loading…
Cancel
Save