SHA256
1
0
forked from pool/grpc
grpc/grpc-build.diff

26 lines
938 B
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2017-12-12 00:32:39.501708666 +0100
openSUSE's c-ares has no c-aresConfig.cmake or c-ares-config.cmake.
Work around it.
---
cmake/cares.cmake | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
Index: grpc-1.10.0/cmake/cares.cmake
===================================================================
--- grpc-1.10.0.orig/cmake/cares.cmake
+++ grpc-1.10.0/cmake/cares.cmake
@@ -31,10 +31,5 @@ if("${gRPC_CARES_PROVIDER}" STREQUAL "mo
endif()
elseif("${gRPC_CARES_PROVIDER}" STREQUAL "package")
# Use "CONFIG" as there is no built-in cmake module for c-ares.
- find_package(c-ares REQUIRED CONFIG)
- if(TARGET c-ares::cares)
- set(_gRPC_CARES_LIBRARIES c-ares::cares)
- set(_gRPC_CARES_INCLUDE_DIR ${c-ares_INCLUDE_DIR})
- endif()
- set(_gRPC_FIND_CARES "if(NOT c-ares_FOUND)\n find_package(c-ares CONFIG)\nendif()")
+ set(_gRPC_CARES_LIBRARIES -lcares)
endif()