summaryrefslogtreecommitdiffstats
path: root/Source/cmQTWrapCPPCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-05 16:13:50 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-05 16:13:50 (GMT)
commit15cdf406d629d80e83910cd064bdb832057e64ca (patch)
treee274321c83c8136d66dd23c8d78f2778d7371699 /Source/cmQTWrapCPPCommand.cxx
parentfca398f961e1b9b950f79f180bb3826b8368a985 (diff)
downloadCMake-15cdf406d629d80e83910cd064bdb832057e64ca.zip
CMake-15cdf406d629d80e83910cd064bdb832057e64ca.tar.gz
CMake-15cdf406d629d80e83910cd064bdb832057e64ca.tar.bz2
BUG: Fix dependency to input file for QT_WRAP_CPP. Bug #421 - QT_WRAP_CPP
Diffstat (limited to 'Source/cmQTWrapCPPCommand.cxx')
-rw-r--r--Source/cmQTWrapCPPCommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmQTWrapCPPCommand.cxx b/Source/cmQTWrapCPPCommand.cxx
index a446ded..6bc9798 100644
--- a/Source/cmQTWrapCPPCommand.cxx
+++ b/Source/cmQTWrapCPPCommand.cxx
@@ -144,12 +144,15 @@ void cmQTWrapCPPCommand::FinalPass()
args.push_back(res);
args.push_back(m_WrapHeaders[classNum]);
+ std::vector<std::string> realdepends = depends;
+ realdepends.push_back(m_WrapHeaders[classNum]);
+
m_Makefile->AddCustomCommandToOutput(
res.c_str(),
moc_exe.c_str(),
args,
0,
- depends,
+ realdepends,
"QT Wrapped File",
0);
}