[clangd] Add CMake dependencies for Protobuf-generated files

Summary:
Dependencies ensure that Protobufs are generated before all libraries
depending on the headers are **built**, not linked.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79085
This commit is contained in:
Kirill Bobyrev 2020-04-29 16:59:32 +02:00
parent 5c4b4a6225
commit 4645ef17ff
No known key found for this signature in database
GPG Key ID: 2307C055C8384FA0
3 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,9 @@ if (CLANGD_ENABLE_REMOTE)
grpc++
clangDaemon
clangdSupport
DEPENDS
RemoteIndexProtos
)
add_subdirectory(marshalling)

View File

@ -7,4 +7,7 @@ add_clang_library(clangdRemoteMarshalling
protobuf
clangDaemon
clangdSupport
DEPENDS
RemoteIndexProtos
)

View File

@ -4,6 +4,9 @@ set(LLVM_LINK_COMPONENTS
)
add_clang_executable(clangd-index-server
Server.cpp
DEPENDS
RemoteIndexProtos
)
target_link_libraries(clangd-index-server
PRIVATE