aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/AddLLVM.cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2008-10-26 00:51:05 +0000
committerOscar Fuentes <ofv@wanadoo.es>2008-10-26 00:51:05 +0000
commit79d0219424c69dfd7e3c2ff263b633b0552ce246 (patch)
treef7529adf639a19babfead5fce4cd77759a7d2e44 /cmake/modules/AddLLVM.cmake
parent5cf69c32f8360ddb54ee94faced3a3c14a2fcad1 (diff)
downloadexternal_llvm-79d0219424c69dfd7e3c2ff263b633b0552ce246.zip
external_llvm-79d0219424c69dfd7e3c2ff263b633b0552ce246.tar.gz
external_llvm-79d0219424c69dfd7e3c2ff263b633b0552ce246.tar.bz2
CMake: Support for LLVM_USED_LIBS variable, which is the cmake
counterpart of USED_LIBS. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rwxr-xr-xcmake/modules/AddLLVM.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 0b7d9c8..a46dcce 100755
--- 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 )