Skip to content

Commit d071bba

Browse files
committed
[clangd] Add back dependency on proto generated targets
Previous attempts: * 15f6bad * 58d0ef2 The combination results in both link- and build-time dependency which is the desired behavior.
1 parent 22e6b18 commit d071bba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-tools-extra/clangd/index/remote/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ if (CLANGD_ENABLE_REMOTE)
33
generate_protos(RemoteIndexProto "Index.proto")
44
target_link_libraries(RemoteIndexServiceProto
55

6-
PRIVATE
6+
PUBLIC
77
RemoteIndexProto
88
)
9+
add_dependencies(RemoteIndexServiceProto RemoteIndexProto)
910
include_directories(${CMAKE_CURRENT_BINARY_DIR})
1011
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../)
1112

0 commit comments

Comments
 (0)