freebsd-ports/devel/grpc/files/patch-cmake_cares.cmake

13 lines
521 B
CMake
Raw Normal View History

2018-11-23 01:15:23 +01:00
--- cmake/cares.cmake.orig 2018-09-24 23:51:30 UTC
2018-02-04 04:35:57 +01:00
+++ cmake/cares.cmake
2018-11-23 01:15:23 +01:00
@@ -31,7 +31,8 @@ if("${gRPC_CARES_PROVIDER}" STREQUAL "module")
2018-02-04 04:35:57 +01:00
endif()
elseif("${gRPC_CARES_PROVIDER}" STREQUAL "package")
2018-03-03 13:19:01 +01:00
# Use "CONFIG" as there is no built-in cmake module for c-ares.
2018-02-04 04:35:57 +01:00
- find_package(c-ares REQUIRED CONFIG)
+ find_package(PkgConfig REQUIRED)
+ pkg_search_module(CARES REQUIRED libcares)
if(TARGET c-ares::cares)
set(_gRPC_CARES_LIBRARIES c-ares::cares)
set(_gRPC_CARES_INCLUDE_DIR ${c-ares_INCLUDE_DIR})