summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-04 20:06:33 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-04 20:06:33 (GMT)
commit72be61fb57cf88f89c270f2d6069fc40d4c392ee (patch)
tree34ff541101a0b106bd68519a94ce63c890a54d51 /Source/cmMakefile.cxx
parent003a6a7260716ffc6731bac106dc8980f985acc8 (diff)
downloadCMake-72be61fb57cf88f89c270f2d6069fc40d4c392ee.zip
CMake-72be61fb57cf88f89c270f2d6069fc40d4c392ee.tar.gz
CMake-72be61fb57cf88f89c270f2d6069fc40d4c392ee.tar.bz2
tricky fix for backwards compat
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";