summaryrefslogtreecommitdiff
path: root/cmake/modules/AddLLVM.cmake
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-11-29 01:31:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-11-29 01:31:52 +0000
commit288bc5cdd0b31b923aa6acc314736f5303e67978 (patch)
tree05e3860176926538f6f1f339d4930e84f5ab26b1 /cmake/modules/AddLLVM.cmake
parentba78c883d4c89bd807fa7ebea7ac6f22f3503223 (diff)
downloadllvm-288bc5cdd0b31b923aa6acc314736f5303e67978.tar.gz
llvm-288bc5cdd0b31b923aa6acc314736f5303e67978.tar.bz2
llvm-288bc5cdd0b31b923aa6acc314736f5303e67978.tar.xz
build/cmake: Switch to using llvm-build computed dependencies.
- I verified locally that the current dependency lists are identical. - This makes add_llvm_library_dependencies() a no-op. I'll remove it once this change passes the bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rwxr-xr-xcmake/modules/AddLLVM.cmake14
1 files changed, 8 insertions, 6 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index b486fe4d82..88e993f5e5 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -25,15 +25,17 @@ macro(add_llvm_library name)
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
endif()
set_target_properties(${name} PROPERTIES FOLDER "Libraries")
+
+ # Add the explicit dependency information for this library.
+ #
+ # It would be nice to verify that we have the dependencies for this library
+ # name, but using get_property(... SET) doesn't suffice to determine if a
+ # property has been set to an empty value.
+ get_property(lib_deps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_${name})
+ target_link_libraries(${name} ${lib_deps})
endmacro(add_llvm_library name)
macro(add_llvm_library_dependencies name)
- # Save the dependencies of the LLVM library in a variable so that we can
- # query it when resolve llvm-config-style component -> library mappings.
- set_property(GLOBAL PROPERTY LLVM_LIB_DEPS_${name} ${ARGN})
-
- # Then add the actual dependencies to the library target.
- target_link_libraries(${name} ${ARGN})
endmacro(add_llvm_library_dependencies name)
macro(add_llvm_loadable_module name)