forked from OSchip/llvm-project
CMake: Support for LLVM_USED_LIBS variable, which is the cmake
counterpart of USED_LIBS. llvm-svn: 58178
This commit is contained in:
parent
ca0b988a21
commit
20baf2fc3c
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue