forked from OSchip/llvm-project
[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:
parent
232ef38713
commit
cac8cd0a16
|
|
@ -43,5 +43,9 @@ clang_target_link_libraries(ASTTests
|
|||
clangFrontend
|
||||
clangSerialization
|
||||
clangTooling
|
||||
LLVMTestingSupport
|
||||
)
|
||||
|
||||
target_link_libraries(ASTTests
|
||||
PRIVATE
|
||||
LLVMTestingSupport
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue