TableGen.cmake: sometimes the .td file is not in the current directory
authorOscar Fuentes <ofv@wanadoo.es>
Mon, 3 Jan 2011 20:01:32 +0000 (20:01 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Mon, 3 Jan 2011 20:01:32 +0000 (20:01 +0000)
commit5b30f0a7ebc60dd1aa63c237157ea658454f4270
tree6e2fc9c3ee0c56fef0fc643bfbb4389a0b64335b
parent30f4a559d71b2382e3c74be2b9bfd9dd575d960a
TableGen.cmake: sometimes the .td file is not in the current directory
(clang/include/clang/Basic/StmtNodes.td, for instance, is tablegenned
from clang/include/clang/AST/CMakeLists.txt) so it is not contained on
the list of all .td files on the current source directory which is
used as the DEPENDS of the custom command. We must add the .td file to
the DEPENDS list of the custom command. Otherwise some .inc files are
not regenerated when the corresponding .td file changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122768 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/TableGen.cmake