Skip to content

Commit 4b85a55

Browse files
committed
Add package providers for cares and re2 if not vendored as they won't be a submodule of grpc
1 parent 51d6dd3 commit 4b85a55

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3222,6 +3222,10 @@ function(build_grpc)
32223222
set(_gRPC_CARES_LIBRARIES
32233223
"c-ares::cares"
32243224
CACHE STRING "" FORCE)
3225+
else()
3226+
set(gRPC_CARES_PROVIDER
3227+
"package"
3228+
CACHE STRING "" FORCE)
32253229
endif()
32263230

32273231
if(RE2_VENDORED)
@@ -3231,6 +3235,10 @@ function(build_grpc)
32313235
set(_gRPC_RE2_LIBRARIES
32323236
"re2::re2"
32333237
CACHE STRING "" FORCE)
3238+
else()
3239+
set(gRPC_RE2_PROVIDER
3240+
"package"
3241+
CACHE STRING "" FORCE)
32343242
endif()
32353243
set(gRPC_SSL_PROVIDER
32363244
"package"

0 commit comments

Comments
 (0)