mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 06:23:57 +08:00
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 24b619f..f7a11b9 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -2076,6 +2076,8 @@ target_link_libraries(grpc
|
|
${_gRPC_UPB_LIBRARIES}
|
|
${_gRPC_ALLTARGETS_LIBRARIES}
|
|
absl::flat_hash_map
|
|
+ absl::time
|
|
+ absl::synchronization
|
|
absl::inlined_vector
|
|
absl::bind_front
|
|
absl::statusor
|
|
@@ -2623,6 +2625,8 @@ target_link_libraries(grpc_unsecure
|
|
${_gRPC_ALLTARGETS_LIBRARIES}
|
|
absl::flat_hash_map
|
|
absl::inlined_vector
|
|
+ absl::time
|
|
+ absl::synchronization
|
|
absl::statusor
|
|
gpr
|
|
address_sorting
|
|
diff --git a/cmake/abseil-cpp.cmake b/cmake/abseil-cpp.cmake
|
|
index 078d495..b6f50bd 100644
|
|
--- a/cmake/abseil-cpp.cmake
|
|
+++ b/cmake/abseil-cpp.cmake
|
|
@@ -37,4 +37,7 @@ elseif(gRPC_ABSL_PROVIDER STREQUAL "package")
|
|
# Use "CONFIG" as there is no built-in cmake module for absl.
|
|
find_package(absl REQUIRED CONFIG)
|
|
set(_gRPC_FIND_ABSL "if(NOT absl_FOUND)\n find_package(absl CONFIG)\nendif()")
|
|
+ if (gRPC_ABSL_SYNC_ENABLE)
|
|
+ add_definitions(-DGPR_ABSEIL_SYNC=1)
|
|
+ endif()
|
|
endif()
|