From d8b1b9a3c1bea74f109d0ad6131cd751c6230df3 Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Fri, 14 Aug 2009 04:38:57 +0000 Subject: [PATCH] CMake: Use LLVM_COMMON_DEPENDS on add_llvm_executable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78990 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/modules/AddLLVM.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index ded77be4232..0d263f83655 100755 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -30,6 +30,9 @@ macro(add_llvm_executable name) if( llvm_system_libs ) target_link_libraries(${name} ${llvm_system_libs}) endif() + if( LLVM_COMMON_DEPENDS ) + add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} ) + endif( LLVM_COMMON_DEPENDS ) endmacro(add_llvm_executable name)