llvm.org GIT mirror llvm / bcc1db5
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 Oscar Fuentes 10 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1414
1515 macro(add_llvm_executable name)
1616 add_executable(${name} ${ARGN})
17 if( LLVM_USED_LIBS )
18 foreach(lib ${LLVM_USED_LIBS})
19 target_link_libraries( ${name} ${lib} )
20 endforeach(lib)
21 endif( LLVM_USED_LIBS )
1722 if( LLVM_LINK_COMPONENTS )
1823 llvm_config(${name} ${LLVM_LINK_COMPONENTS})
1924 endif( LLVM_LINK_COMPONENTS )