summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-04-09 14:31:36 (GMT)
committerBrad King <brad.king@kitware.com>2001-04-09 14:31:36 (GMT)
commite0da3ef275682626ec2e23d1abd6cca752882b47 (patch)
tree9a0e8ed9cc7a7fc8c3c07d89f255e08c33d257bb /Source/cmUnixMakefileGenerator.cxx
parente7bd5fcd19064480142aae2928189dc822fad47c (diff)
downloadCMake-e0da3ef275682626ec2e23d1abd6cca752882b47.zip
CMake-e0da3ef275682626ec2e23d1abd6cca752882b47.tar.gz
CMake-e0da3ef275682626ec2e23d1abd6cca752882b47.tar.bz2
ERR: Corrected use of double-quotes to be compatible with UNIX make. Now double quotes (windows) or escape sequences for spaces (unix) are added when dependencies are output.
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 0128848..068d85f 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -436,7 +436,8 @@ void cmUnixMakefileGenerator::OutputCustomRules(std::ostream& fout)
commandFiles.m_Depends.begin();
d != commandFiles.m_Depends.end(); ++d)
{
- fout << " " << d->c_str();
+ std::string dep = cmSystemTools::EscapeSpaces(d->c_str());
+ fout << " " << dep.c_str();
}
fout << "\n\t" << command.c_str() << "\n\n";
}