Skip to content

Commit

Permalink
[clang-tools-extra] Fix linking ClangdTests when using libclang-cpp
Browse files Browse the repository at this point in the history
Fix linking ClangdTests to specify the dependency on the private
clangTesting library via target_link_libraries() rather than
clang_target_link_libraries().  The latter uses libclang-cpp when
CLANG_LINK_CLANG_DYLIB is used, and clangTesting is not included
in this library.

This fixes d60d345.

Differential Revision: https://reviews.llvm.org/D146427
  • Loading branch information
mgorny committed Mar 24, 2023
1 parent 0f6fd1b commit 3bff90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ clang_target_link_libraries(ClangdTests
clangLex
clangSema
clangSerialization
clangTesting
clangTooling
clangToolingCore
clangToolingInclusions
Expand All @@ -172,6 +171,7 @@ target_link_libraries(ClangdTests

clangDaemon
clangIncludeCleaner
clangTesting
clangTidy
clangdSupport
)
Expand Down

0 comments on commit 3bff90e

Please sign in to comment.