diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-29 23:52:01 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-29 23:52:01 +0000 |
commit | 2e1513d9cd7750db05048fb2af0c8cac0307fc5a (patch) | |
tree | f2c36cb8567a8fce0852937e2b09d6e7fe3cd808 /cmake/modules/CMakeLists.txt | |
parent | eeb57c7701ded683d660ed616966cfe7b1750337 (diff) | |
download | external_llvm-2e1513d9cd7750db05048fb2af0c8cac0307fc5a.zip external_llvm-2e1513d9cd7750db05048fb2af0c8cac0307fc5a.tar.gz external_llvm-2e1513d9cd7750db05048fb2af0c8cac0307fc5a.tar.bz2 |
Make my attempt to build up global deps variables actually utilize
globally scoped constructs. Also, round-trip these dependencies through
the LLVMConfig.cmake.in file thata is used by CMake-based clients of
"installed" (or built) LLVM trees.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/CMakeLists.txt')
-rw-r--r-- | cmake/modules/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt index 298da95..09979d0 100644 --- a/cmake/modules/CMakeLists.txt +++ b/cmake/modules/CMakeLists.txt @@ -3,6 +3,12 @@ set(LLVM_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) get_property(llvm_libs GLOBAL PROPERTY LLVM_LIBS) +foreach(lib ${llvm_libs}) + get_property(llvm_lib_deps GLOBAL PROPERTY LLVM_LIB_DEPS_${lib}) + set(all_llvm_lib_deps + "${all_llvm_lib_deps}\nset_property(GLOBAL PROPERTY LLVM_LIB_DEPS_${lib} ${llvm_lib_deps})") +endforeach(lib) + configure_file( LLVMConfig.cmake.in ${llvm_cmake_builddir}/LLVMConfig.cmake |