mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-04 10:30:01 +00:00
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
This commit is contained in:
parent
619ce78b21
commit
bcc1db5f0a
@ -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