Have llvm-c-test only use libLLVM if libLLVM has all the right components.
authorChris Bieneman <beanz@apple.com>
Thu, 18 Dec 2014 21:03:49 +0000 (21:03 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 18 Dec 2014 21:03:49 +0000 (21:03 +0000)
commit9ef9c1144a7094c82f5a590b8969ca7975146e1b
treeb16063e42f12ec2f55067bee9f1a84233dde4455
parentb743a8034f28576973250682863472ccf6c04f04
Have llvm-c-test only use libLLVM if libLLVM has all the right components.

Summary: We should only have llvm-c-test use libLLVM if the library is built with the default set of components or if LLVM_DYLIB_COMPONENTS includes all the LLVM_LINK_COMPONENTS required for llvm-c-test. Making libLLVM always used causes build failures if libLLVM doesn't include all

Reviewers: chapuni, ributzka

Reviewed By: ributzka

Subscribers: ributzka, llvm-commits

Differential Revision: http://reviews.llvm.org/D6668

llvm-svn: 224541
llvm/tools/llvm-c-test/CMakeLists.txt