[CMake] Fix unittests in out-of-LLVM-tree builds.
commitd6fb119b6b6074c61fafa63e3205d03311172daf
authorMichael Kruse <llvm@meinersbur.de>
Sat, 22 Apr 2017 23:02:46 +0000 (22 23:02 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Sat, 22 Apr 2017 23:02:46 +0000 (22 23:02 +0000)
treec53b810ba399acd0c0b572731f47a7bf507169ca
parent93542635990c9afff443aa8fc5e4cec2cf294453
[CMake] Fix unittests in out-of-LLVM-tree builds.

Unittests are linked against a subset of LLVM libraries and its
transitive dependencies resolved by CMake. The information about indirect
library dependency is not available when building separately from
LLVM, which result in missing symbol errors while linking.

Resolve this issue by querying llvm-config about the available
LLVM libraries and link against all of them, since dependence
information is still not available.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@301095 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
unittests/CMakeLists.txt