Teach LLVM-Config to use logical target names (2/2)
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 21 Feb 2014 14:17:07 +0000 (14:17 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 21 Feb 2014 14:17:07 +0000 (14:17 +0000)
commit6eeedf33d596dee084b12cbcfc109d3c2be854f4
tree4236cc58cdd33e6c457e73f67e7b3333115b42e6
parent83782f2571d25ec035a353acce17c8b86c5cb4ad
Teach LLVM-Config to use logical target names (2/2)

The module still needs to collect the list of all available libraries
in order to satisfy the 'all' component.  Provide this in the package
configuration file, 'LLVMConfig.cmake', as a LLVM_AVAILABLE_LIBS
variable.  (A variable is scoped better than a global property.)
Since this won't be set for our own build, fall back to looking up the
LLVM_LIBS property to get the value when it is not set.

Contributed by Brad King.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201853 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/CMakeLists.txt
cmake/modules/LLVM-Config.cmake
cmake/modules/LLVMConfig.cmake.in
cmake/modules/Makefile