mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
CMake: Support for LLVM_USED_LIBS variable, which is the cmake
counterpart of USED_LIBS. llvm-svn: 58178
This commit is contained in:
parent
8286c161d3
commit
7fa2179afa
@ -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…
x
Reference in New Issue
Block a user