projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
619ce78
)
CMake: Support for LLVM_USED_LIBS variable, which is the cmake
author
Oscar Fuentes
<ofv@wanadoo.es>
Sun, 26 Oct 2008 00:51:05 +0000
(
00:51
+0000)
committer
Oscar Fuentes
<ofv@wanadoo.es>
Sun, 26 Oct 2008 00:51:05 +0000
(
00:51
+0000)
counterpart of USED_LIBS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58178
91177308
-0d34-0410-b5e6-
96231b3b80d8
cmake/modules/AddLLVM.cmake
patch
|
blob
|
history
diff --git
a/cmake/modules/AddLLVM.cmake
b/cmake/modules/AddLLVM.cmake
index 0b7d9c821a2551764ee298fd67b4bcb3baece3d0..a46dcce9103f8f585e04fe01dbbd7422b25e01b9 100755
(executable)
--- a/
cmake/modules/AddLLVM.cmake
+++ b/
cmake/modules/AddLLVM.cmake
@@
-15,6
+15,11
@@
endmacro(add_llvm_library name)
macro(add_llvm_executable name)
add_executable(${name} ${ARGN})
+ if( LLVM_USED_LIBS )
+ foreach(lib ${LLVM_USED_LIBS})
+ target_link_libraries( ${name} ${lib} )
+ endforeach(lib)
+ endif( LLVM_USED_LIBS )
if( LLVM_LINK_COMPONENTS )
llvm_config(${name} ${LLVM_LINK_COMPONENTS})
endif( LLVM_LINK_COMPONENTS )