diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2023-01-05 15:16:10 +0100 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2023-01-10 21:01:37 +0100 |
commit | 9f3081dc6fe8447e85741865846840bc491866e5 (patch) | |
tree | fd959a526cbfe94afc8da9dad156b4c2f2247f13 /clang/cmake | |
parent | 69bbcdd0aba9bbfad8957860e24a792b85017146 (diff) | |
download | llvm-9f3081dc6fe8447e85741865846840bc491866e5.tar.gz |
build: with -DCLANGD_ENABLE_REMOTE=ON, search for grpc++ dependencies too
Fixes: https://github.com/llvm/llvm-project/issues/59844
Differential Revision: https://reviews.llvm.org/D141047
Diffstat (limited to 'clang/cmake')
-rw-r--r-- | clang/cmake/modules/AddGRPC.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/cmake/modules/AddGRPC.cmake b/clang/cmake/modules/AddGRPC.cmake index 8989bd757d24..b2f4041fbeaf 100644 --- a/clang/cmake/modules/AddGRPC.cmake +++ b/clang/cmake/modules/AddGRPC.cmake @@ -4,8 +4,13 @@ function(generate_clang_protos_library LibraryName ProtoFile) # Take the first two args and forward the remaining to generate_proto_sources. cmake_parse_arguments(PARSE_ARGV 2 PROTO "" "" "") generate_proto_sources(ProtoSource ${ProtoFile} ${PROTO_UNPARSED_ARGUMENTS}) + set(LINKED_GRPC_LIBRARIES protobuf gpr grpc grpc++) + if (ABSL_SYNCHRONIZATION_LIBRARY) + list(APPEND LINKED_GRPC_LIBRARIES absl_synchronization) + endif() add_clang_library(${LibraryName} ${ProtoSource} PARTIAL_SOURCES_INTENDED - LINK_LIBS PUBLIC grpc++ protobuf) + LINK_LIBS PUBLIC ${LINKED_GRPC_LIBRARIES}) + endfunction() |