forked from OSchip/llvm-project
CMake: removed some unnecesary conditionals from add_clang_library.
llvm-svn: 128483
This commit is contained in:
parent
e41395ac24
commit
fda6a4c33a
|
|
@ -171,21 +171,12 @@ macro(add_clang_library name)
|
||||||
if( LLVM_COMMON_DEPENDS )
|
if( LLVM_COMMON_DEPENDS )
|
||||||
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
|
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
|
||||||
endif( LLVM_COMMON_DEPENDS )
|
endif( LLVM_COMMON_DEPENDS )
|
||||||
if( LLVM_USED_LIBS )
|
|
||||||
foreach(lib ${LLVM_USED_LIBS})
|
target_link_libraries( ${name} ${LLVM_USED_LIBS} )
|
||||||
target_link_libraries( ${name} ${lib} )
|
llvm_config( ${name} ${LLVM_LINK_COMPONENTS} )
|
||||||
endforeach(lib)
|
target_link_libraries( ${name} ${LLVM_COMMON_LIBS} )
|
||||||
endif( LLVM_USED_LIBS )
|
link_system_libs( ${name} )
|
||||||
if( LLVM_LINK_COMPONENTS )
|
|
||||||
llvm_config(${name} ${LLVM_LINK_COMPONENTS})
|
|
||||||
endif( LLVM_LINK_COMPONENTS )
|
|
||||||
if (LLVM_COMMON_LIBS)
|
|
||||||
target_link_libraries(${name} ${LLVM_COMMON_LIBS})
|
|
||||||
endif()
|
|
||||||
get_system_libs(llvm_system_libs)
|
|
||||||
if( llvm_system_libs )
|
|
||||||
target_link_libraries(${name} ${llvm_system_libs})
|
|
||||||
endif()
|
|
||||||
add_dependencies(${name} ClangDiagnosticCommon)
|
add_dependencies(${name} ClangDiagnosticCommon)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
get_target_property(cflag ${name} COMPILE_FLAGS)
|
get_target_property(cflag ${name} COMPILE_FLAGS)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue