Reinstate target dependencies on Table_gen targets in CMake

llvm-svn: 74003
This commit is contained in:
Douglas Gregor 2009-06-23 21:05:21 +00:00
parent 226e1d8bda
commit 859f3091db

View File

@ -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)