summaryrefslogtreecommitdiffstats
path: root/Source/cmDSPWriter.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-07-24 20:16:02 (GMT)
committerBrad King <brad.king@kitware.com>2001-07-24 20:16:02 (GMT)
commit1f2c84f2844067e83dfeea7d728fbc4e44c70547 (patch)
tree923dceb5435635543a5c87ab7ffcb3510b2675ae /Source/cmDSPWriter.cxx
parent9adacc17f899270691f9dfd4d9dfbb1de6920682 (diff)
downloadCMake-1f2c84f2844067e83dfeea7d728fbc4e44c70547.zip
CMake-1f2c84f2844067e83dfeea7d728fbc4e44c70547.tar.gz
CMake-1f2c84f2844067e83dfeea7d728fbc4e44c70547.tar.bz2
BUG: Fixed dependency generation to work for when there are many, many dependencies. Output is now easier to ready anyway because each dependency is on its own line.
Diffstat (limited to 'Source/cmDSPWriter.cxx')
-rw-r--r--Source/cmDSPWriter.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx
index 582d1ad..eff7bf1 100644
--- a/Source/cmDSPWriter.cxx
+++ b/Source/cmDSPWriter.cxx
@@ -317,13 +317,12 @@ void cmDSPWriter::WriteCustomRule(std::ostream& fout,
fout << "!ELSEIF \"$(CFG)\" == " << i->c_str() << std::endl;
}
- // Write out the dependencies (this seems to be the only way to
- // get VC6 to actually take these dependencies into account.
- fout << "USERDEP__HACK= ";
+ // Write out the dependencies for the rule.
+ fout << "USERDEP__HACK=";
for(std::set<std::string>::const_iterator d = depends.begin();
d != depends.end(); ++d)
{
- fout << " \"" << d->c_str() << "\"";
+ fout << "\\\n\t\"" << d->c_str() << "\"";
}
fout << "\n";
@@ -340,12 +339,6 @@ void cmDSPWriter::WriteCustomRule(std::ostream& fout,
{
fout << "\"" << output->c_str()
<< "\" : \"$(SOURCE)\" \"$(INTDIR)\" \"$(OUTDIR)\"";
- // Write out all the dependencies for this rule.
- for(std::set<std::string>::const_iterator d = depends.begin();
- d != depends.end(); ++d)
- {
- fout << " \"" << d->c_str() << "\"";
- }
fout << command << "\n\n";
}