diff --git a/clang-tools-extra/clangd/CMakeLists.txt b/clang-tools-extra/clangd/CMakeLists.txt --- a/clang-tools-extra/clangd/CMakeLists.txt +++ b/clang-tools-extra/clangd/CMakeLists.txt @@ -28,7 +28,7 @@ FrontendOpenMP Option ) - + include(${CMAKE_CURRENT_SOURCE_DIR}/quality/CompletionModel.cmake) gen_decision_forest(${CMAKE_CURRENT_SOURCE_DIR}/quality/model CompletionModel clang::clangd::Example) @@ -111,12 +111,6 @@ refactor/Rename.cpp refactor/Tweak.cpp - LINK_LIBS - clangdSupport - clangTidy - ${LLVM_PTHREAD_LIB} - ${ALL_CLANG_TIDY_CHECKS} - DEPENDS omp_gen ) @@ -145,6 +139,17 @@ clangToolingSyntax ) +target_link_libraries(clangDaemon + PRIVATE + ${LLVM_PTHREAD_LIB} + + clangTidy + ${ALL_CLANG_TIDY_CHECKS} + + clangdSupport + clangdRemoteIndex + ) + add_subdirectory(refactor/tweaks) if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") # FIXME: Make fuzzer not use linux-specific APIs, build it everywhere. diff --git a/clang-tools-extra/clangd/index/remote/CMakeLists.txt b/clang-tools-extra/clangd/index/remote/CMakeLists.txt --- a/clang-tools-extra/clangd/index/remote/CMakeLists.txt +++ b/clang-tools-extra/clangd/index/remote/CMakeLists.txt @@ -18,10 +18,8 @@ RemoteIndexProto RemoteIndexServiceProto clangdRemoteMarshalling - protobuf grpc++ - clangDaemon clangdSupport DEPENDS diff --git a/clang-tools-extra/clangd/index/remote/Client.cpp b/clang-tools-extra/clangd/index/remote/Client.cpp --- a/clang-tools-extra/clangd/index/remote/Client.cpp +++ b/clang-tools-extra/clangd/index/remote/Client.cpp @@ -11,7 +11,6 @@ #include "Client.h" #include "Service.grpc.pb.h" #include "index/Index.h" -#include "index/Serialization.h" #include "marshalling/Marshalling.h" #include "support/Logger.h" #include "support/Trace.h" diff --git a/clang-tools-extra/clangd/index/remote/unimplemented/CMakeLists.txt b/clang-tools-extra/clangd/index/remote/unimplemented/CMakeLists.txt --- a/clang-tools-extra/clangd/index/remote/unimplemented/CMakeLists.txt +++ b/clang-tools-extra/clangd/index/remote/unimplemented/CMakeLists.txt @@ -6,6 +6,5 @@ UnimplementedClient.cpp LINK_LIBS - clangDaemon clangdSupport ) diff --git a/clang-tools-extra/clangd/tool/CMakeLists.txt b/clang-tools-extra/clangd/tool/CMakeLists.txt --- a/clang-tools-extra/clangd/tool/CMakeLists.txt +++ b/clang-tools-extra/clangd/tool/CMakeLists.txt @@ -28,12 +28,14 @@ clangToolingCore clangToolingRefactoring clangToolingSyntax - clangdRemoteIndex ) + target_link_libraries(clangd PRIVATE clangTidy + clangDaemon + clangdRemoteIndex clangdSupport ${CLANGD_XPC_LIBS} )