Skip to content

Commit 3bff90e

Browse files
committed
[clang-tools-extra] Fix linking ClangdTests when using libclang-cpp
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
1 parent 0f6fd1b commit 3bff90e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/unittests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ clang_target_link_libraries(ClangdTests
157157
clangLex
158158
clangSema
159159
clangSerialization
160-
clangTesting
161160
clangTooling
162161
clangToolingCore
163162
clangToolingInclusions
@@ -172,6 +171,7 @@ target_link_libraries(ClangdTests
172171

173172
clangDaemon
174173
clangIncludeCleaner
174+
clangTesting
175175
clangTidy
176176
clangdSupport
177177
)

0 commit comments

Comments
 (0)