summaryrefslogtreecommitdiffstats
path: root/Source/cmDSPWriter.cxx
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-09-01 20:56:41 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-09-01 20:56:41 (GMT)
commit2f6e0d47039f3e0975a924785c4e3effff70d9ce (patch)
tree9ed0a02c9b9d874cb0ed11fbe669958f420accf6 /Source/cmDSPWriter.cxx
parent9c3fc67d00a2ec1fe3c7b6563c563e5fd927d8f8 (diff)
downloadCMake-2f6e0d47039f3e0975a924785c4e3effff70d9ce.zip
CMake-2f6e0d47039f3e0975a924785c4e3effff70d9ce.tar.gz
CMake-2f6e0d47039f3e0975a924785c4e3effff70d9ce.tar.bz2
Convert path format back to Windows slashes syntax. Mandatory for Win98 build.
Diffstat (limited to 'Source/cmDSPWriter.cxx')
-rw-r--r--Source/cmDSPWriter.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx
index 09f1ee8..cdd6186 100644
--- a/Source/cmDSPWriter.cxx
+++ b/Source/cmDSPWriter.cxx
@@ -258,11 +258,14 @@ void cmDSPWriter::WriteDSPFile(std::ostream& fout,
// build up the depends and outputs and commands
cmSourceGroup::CommandFiles totalCommand;
std::string totalCommandStr;
+ std::string temp;
for(cmSourceGroup::Commands::const_iterator c = commands.begin();
c != commands.end(); ++c)
{
totalCommandStr += "\n\t";
- totalCommandStr += c->first;
+ temp= c->first;
+ cmSystemTools::ConvertToWindowsSlashes(temp);
+ totalCommandStr += temp;
totalCommand.Merge(c->second);
}
// Create a dummy file with the name of the source if it does
@@ -317,10 +320,12 @@ void cmDSPWriter::WriteCustomRule(std::ostream& fout,
// Write out the dependencies for the rule.
fout << "USERDEP__HACK=";
+ std::string temp;
for(std::set<std::string>::const_iterator d = depends.begin();
d != depends.end(); ++d)
{
- fout << "\\\n\t" << cmSystemTools::EscapeSpaces(d->c_str());
+ temp = *d;
+ fout << "\\\n\t" << cmSystemTools::EscapeSpaces(cmSystemTools::ConvertToWindowsSlashes(temp));
}
fout << "\n";