Blame grpc-1.37.0-unbundle-xxhash.patch

ce88e01
diff -Naur grpc-1.37.0-original/cmake/xxhash.cmake grpc-1.37.0/cmake/xxhash.cmake
ce88e01
--- grpc-1.37.0-original/cmake/xxhash.cmake	2021-04-06 18:48:56.000000000 -0400
ce88e01
+++ grpc-1.37.0/cmake/xxhash.cmake	2021-04-08 15:57:39.157042527 -0400
ce88e01
@@ -12,4 +12,6 @@
ce88e01
 # See the License for the specific language governing permissions and
ce88e01
 # limitations under the License.
ce88e01
 
ce88e01
-set(_gRPC_XXHASH_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/xxhash")
ce88e01
+pkg_search_module(XXHASH REQUIRED libxxhash)
ce88e01
+set(_gRPC_XXHASH_INCLUDE_DIR "${XXHASH_INCLUDEDIR}")
ce88e01
+set(_gRPC_XXHASH_LIBRARIES "${XXHASH_LIBRARIES}")
ce88e01
diff -Naur grpc-1.37.0-original/CMakeLists.txt grpc-1.37.0/CMakeLists.txt
ce88e01
--- grpc-1.37.0-original/CMakeLists.txt	2021-04-06 18:48:56.000000000 -0400
ce88e01
+++ grpc-1.37.0/CMakeLists.txt	2021-04-08 15:53:39.462854440 -0400
ce88e01
@@ -262,7 +262,8 @@
ce88e01
 elseif(_gRPC_PLATFORM_ANDROID)
ce88e01
   set(_gRPC_ALLTARGETS_LIBRARIES ${CMAKE_DL_LIBS} m)
ce88e01
 elseif(UNIX)
ce88e01
-  set(_gRPC_ALLTARGETS_LIBRARIES ${CMAKE_DL_LIBS} rt m pthread)
ce88e01
+  set(_gRPC_ALLTARGETS_LIBRARIES
ce88e01
+      ${CMAKE_DL_LIBS} rt m pthread ${_gRPC_XXHASH_LIBRARIES})
ce88e01
 endif()
ce88e01
 
ce88e01
 if(WIN32)