diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2009-08-14 04:38:57 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2009-08-14 04:38:57 +0000 |
commit | d8b1b9a3c1bea74f109d0ad6131cd751c6230df3 (patch) | |
tree | f43c96128dbfbe333a71f236a22b91dbe6decb0e /cmake/modules/AddLLVM.cmake | |
parent | a339063723224a385a4299c80e156e0b9207df70 (diff) | |
download | external_llvm-d8b1b9a3c1bea74f109d0ad6131cd751c6230df3.zip external_llvm-d8b1b9a3c1bea74f109d0ad6131cd751c6230df3.tar.gz external_llvm-d8b1b9a3c1bea74f109d0ad6131cd751c6230df3.tar.bz2 |
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
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rwxr-xr-x | cmake/modules/AddLLVM.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index ded77be..0d263f8 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) |