Skip to content

Commit

Permalink
Try pulling new dependencies from hunter
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsheth authored and rahulshethsc committed Dec 4, 2020
1 parent 9632cc6 commit 7afa6f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ cmake_minimum_required(VERSION 3.0)

include(cmake/HunterGate.cmake)
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.23.80.tar.gz"
SHA1 "3bfa8be33ac3bdac570312ca1ece33059cc71c20"
URL "https://github.com/cpp-pm/hunter/archive/v0.23.264.tar.gz"
SHA1 "45ab668f0923fc3ace807a34d971e34ce7428dfd"
LOCAL
)

Expand Down
1 change: 1 addition & 0 deletions cmake/abseil-cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ if(gRPC_ABSL_PROVIDER STREQUAL "module")
endif()
elseif(gRPC_ABSL_PROVIDER STREQUAL "package")
# Use "CONFIG" as there is no built-in cmake module for absl.
hunter_add_package(abseil)
find_package(absl REQUIRED CONFIG)
set(_gRPC_FIND_ABSL "if(NOT absl_FOUND)\n find_package(absl CONFIG)\nendif()")
endif()
3 changes: 2 additions & 1 deletion cmake/re2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ if(gRPC_RE2_PROVIDER STREQUAL "module")
set(gRPC_INSTALL FALSE)
endif()
elseif(gRPC_RE2_PROVIDER STREQUAL "package")
find_package(re2 REQUIRED)
hunter_add_package(re2)
find_package(re2 REQUIRED CONFIG)
if(TARGET re2::re2)
set(_gRPC_RE2_LIBRARIES re2::re2)
endif()
Expand Down

0 comments on commit 7afa6f3

Please sign in to comment.