cmake: fix cares configuration

pull/12501/head
Jay Lee 8 years ago
parent af57a57a5a
commit bfcbad3b86
No known key found for this signature in database
GPG Key ID: D6F153734C869822
  1. 3
      CMakeLists.txt

@ -134,7 +134,8 @@ if("${gRPC_CARES_PROVIDER}" STREQUAL "module")
if(NOT CARES_ROOT_DIR)
set(CARES_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares/cares)
endif()
set(CARES_STATIC ON)
set(CARES_SHARED OFF CACHE BOOL "disable shared library")
set(CARES_STATIC ON CACHE BOOL "link cares statically")
set(CARES_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares/cares")
add_subdirectory(third_party/cares/cares)
if(TARGET c-ares)

Loading…
Cancel
Save