Teach LLVM-Config to use logical target names (1/2)
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 21 Feb 2014 14:16:52 +0000 (14:16 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 21 Feb 2014 14:16:52 +0000 (14:16 +0000)
commit83782f2571d25ec035a353acce17c8b86c5cb4ad
treeb92ea4620d84cf1773767facdba3543872ba0ba4
parent10ecde5c3442cd24c8f13bd29c20a2c48be1bad8
Teach LLVM-Config to use logical target names (1/2)

LLVM library names are now available as logical CMake targets both
to our own build and to application CMake code.  Replace use of
'list(FIND)' with a simple 'if(TARGET)' to determine whether a
library is available.

Contributed by Brad King.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201852 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/LLVM-Config.cmake