[clang] [unittest/AST] Fix linking to LLVMTestingSupport
authorMichał Górny <mgorny@gentoo.org>
Fri, 1 May 2020 19:22:33 +0000 (21:22 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 1 May 2020 19:22:51 +0000 (21:22 +0200)
commitcac8cd0a16e9c0410e33aaca93c760c503eeb68e
tree21d0a390efe7d8d94ec7bad4cd7325fb009e2ed9
parent232ef38713b984cc84d2a009e83c1b044f0c06d3
[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.
clang/unittests/AST/CMakeLists.txt