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

27 lines
885 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.
---
CMakeLists.txt | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
Index: grpc-1.7.3/CMakeLists.txt
===================================================================
--- grpc-1.7.3.orig/CMakeLists.txt
+++ grpc-1.7.3/CMakeLists.txt
@@ -144,11 +144,7 @@ if("${gRPC_CARES_PROVIDER}" STREQUAL "mo
set(gRPC_INSTALL FALSE)
endif()
elseif("${gRPC_CARES_PROVIDER}" STREQUAL "package")
- find_package(c-ares REQUIRED CONFIG)
- if(TARGET c-ares::cares)
- set(_gRPC_CARES_LIBRARIES c-ares::cares)
- endif()
- set(_gRPC_FIND_CARES "if(NOT c-ares_FOUND)\n find_package(c-ares CONFIG)\nendif()")
+ set(_gRPC_CARES_LIBRARIES -lcares)
endif()
if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")