From 72be61fb57cf88f89c270f2d6069fc40d4c392ee Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 4 Jun 2003 16:06:33 -0400 Subject: [PATCH] tricky fix for backwards compat --- Source/cmMakefile.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index c5eb0fa2ba..2197112524 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -458,8 +458,10 @@ void cmMakefile::AddCustomCommand(const char* source, for(std::vector::const_iterator d = outputs.begin(); d != outputs.end(); ++d) { + std::vector 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";