tricky fix for backwards compat

This commit is contained in:
Ken Martin 2003-06-04 16:06:33 -04:00
parent 003a6a7260
commit 72be61fb57
1 changed files with 3 additions and 1 deletions

View File

@ -458,8 +458,10 @@ void cmMakefile::AddCustomCommand(const char* source,
for(std::vector<std::string>::const_iterator d = outputs.begin(); for(std::vector<std::string>::const_iterator d = outputs.begin();
d != outputs.end(); ++d) d != outputs.end(); ++d)
{ {
std::vector<std::string> depends2 = depends;
depends2.push_back(source);
this->AddCustomCommandToOutput(d->c_str(), command, commandArgs, this->AddCustomCommandToOutput(d->c_str(), command, commandArgs,
source, depends, comment); 0, depends2, comment);
// add the output to the target? // add the output to the target?
std::string sname = *d; std::string sname = *d;
sname += ".rule"; sname += ".rule";