forked from OSchip/llvm-project
[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:
parent
5c4b4a6225
commit
4645ef17ff
|
@ -19,6 +19,9 @@ if (CLANGD_ENABLE_REMOTE)
|
|||
grpc++
|
||||
clangDaemon
|
||||
clangdSupport
|
||||
|
||||
DEPENDS
|
||||
RemoteIndexProtos
|
||||
)
|
||||
|
||||
add_subdirectory(marshalling)
|
||||
|
|
|
@ -7,4 +7,7 @@ add_clang_library(clangdRemoteMarshalling
|
|||
protobuf
|
||||
clangDaemon
|
||||
clangdSupport
|
||||
|
||||
DEPENDS
|
||||
RemoteIndexProtos
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue