From 2e1513d9cd7750db05048fb2af0c8cac0307fc5a Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 29 Jul 2011 23:52:01 +0000 Subject: 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 --- cmake/modules/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmake/modules/CMakeLists.txt') 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 -- cgit v1.1