[clang] [unittest/AST] Fix linking to LLVMTestingSupport

Link to LLVMTestingSupport via target_link_libraries() instead of
clang_target_link_libraries().  The latter is ineffective if tests
are linked to libclang.so.  This solution is consistent with what other
tests do.
This commit is contained in:
Michał Górny 2020-05-01 21:22:33 +02:00
parent 232ef38713
commit cac8cd0a16
1 changed files with 5 additions and 1 deletions

View File

@ -43,5 +43,9 @@ clang_target_link_libraries(ASTTests
clangFrontend
clangSerialization
clangTooling
LLVMTestingSupport
)
target_link_libraries(ASTTests
PRIVATE
LLVMTestingSupport
)