aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-23 21:05:21 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-23 21:05:21 +0000
commit343beeb3868eb4dedf42aa46b17029bcee20dfa2 (patch)
treebbf9029ae7d8ed1f1b5430151b4550cf8ad4e12a
parent46d9a6494496d215e850f337b5a723c484212f80 (diff)
downloadexternal_llvm-343beeb3868eb4dedf42aa46b17029bcee20dfa2.zip
external_llvm-343beeb3868eb4dedf42aa46b17029bcee20dfa2.tar.gz
external_llvm-343beeb3868eb4dedf42aa46b17029bcee20dfa2.tar.bz2
Reinstate target dependencies on Table_gen targets in CMake
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74003 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xcmake/modules/AddLLVM.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index b196c63..660bd70 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -58,4 +58,7 @@ macro(add_llvm_target target_name)
endif( TABLEGEN_OUTPUT )
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
add_llvm_library(LLVM${target_name} ${ARGN} ${TABLEGEN_OUTPUT})
+ if ( TABLEGEN_OUTPUT )
+ add_dependencies(LLVM${target_name} ${target_name}Table_gen)
+ endif (TABLEGEN_OUTPUT)
endmacro(add_llvm_target)