CMake: Support for LLVM_USED_LIBS variable, which is the cmake

counterpart of USED_LIBS.

llvm-svn: 58178
This commit is contained in:
Oscar Fuentes 2008-10-26 00:51:05 +00:00
parent ca0b988a21
commit 20baf2fc3c
1 changed files with 5 additions and 0 deletions

View File

@ -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 )