summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c5eb0fa..2197112 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -458,8 +458,10 @@ void cmMakefile::AddCustomCommand(const char* source,
for(std::vector<std::string>::const_iterator d = outputs.begin();
d != outputs.end(); ++d)
{
+ std::vector<std::string> depends2 = depends;
+ depends2.push_back(source);
this->AddCustomCommandToOutput(d->c_str(), command, commandArgs,
- source, depends, comment);
+ 0, depends2, comment);
// add the output to the target?
std::string sname = *d;
sname += ".rule";