diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-03-29 20:51:00 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-03-29 20:51:00 +0000 |
commit | fda6a4c33a3cbdfca76bfbdae22d6a5256f2802d (patch) | |
tree | 6e7f1e7ec3f53f248c75bd6b193060a9df5718d0 /clang/CMakeLists.txt | |
parent | e41395ac2470f725ff70f6397185b1d0e8de39b2 (diff) | |
download | bcm5719-llvm-fda6a4c33a3cbdfca76bfbdae22d6a5256f2802d.tar.gz bcm5719-llvm-fda6a4c33a3cbdfca76bfbdae22d6a5256f2802d.zip |
CMake: removed some unnecesary conditionals from add_clang_library.
llvm-svn: 128483
Diffstat (limited to 'clang/CMakeLists.txt')
-rw-r--r-- | clang/CMakeLists.txt | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index a56d07488d9..bc63cf8f667 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -171,21 +171,12 @@ macro(add_clang_library name) if( LLVM_COMMON_DEPENDS ) add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} ) endif( LLVM_COMMON_DEPENDS ) - 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 ) - 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() + + target_link_libraries( ${name} ${LLVM_USED_LIBS} ) + llvm_config( ${name} ${LLVM_LINK_COMPONENTS} ) + target_link_libraries( ${name} ${LLVM_COMMON_LIBS} ) + link_system_libs( ${name} ) + add_dependencies(${name} ClangDiagnosticCommon) if(MSVC) get_target_property(cflag ${name} COMPILE_FLAGS) |