diff options
author | Ken Martin <ken.martin@kitware.com> | 2003-06-04 20:06:33 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2003-06-04 20:06:33 (GMT) |
commit | 72be61fb57cf88f89c270f2d6069fc40d4c392ee (patch) | |
tree | 34ff541101a0b106bd68519a94ce63c890a54d51 | |
parent | 003a6a7260716ffc6731bac106dc8980f985acc8 (diff) | |
download | CMake-72be61fb57cf88f89c270f2d6069fc40d4c392ee.zip CMake-72be61fb57cf88f89c270f2d6069fc40d4c392ee.tar.gz CMake-72be61fb57cf88f89c270f2d6069fc40d4c392ee.tar.bz2 |
tricky fix for backwards compat
-rw-r--r-- | Source/cmMakefile.cxx | 4 |
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"; |