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)
commit3d6a9037797f082099054a002050fee00061dbbb
treef1f0484bf319dd4dd596373b6f332a85ad7760fd
parent7ff5aa221c1104fbb61a97c932ef8a5758a95fbb
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224541 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-c-test/CMakeLists.txt