Convert path format back to Windows slashes syntax. Mandatory for Win98 build.
This commit is contained in:
parent
9c3fc67d00
commit
2f6e0d4703
|
@ -258,11 +258,14 @@ void cmDSPWriter::WriteDSPFile(std::ostream& fout,
|
||||||
// build up the depends and outputs and commands
|
// build up the depends and outputs and commands
|
||||||
cmSourceGroup::CommandFiles totalCommand;
|
cmSourceGroup::CommandFiles totalCommand;
|
||||||
std::string totalCommandStr;
|
std::string totalCommandStr;
|
||||||
|
std::string temp;
|
||||||
for(cmSourceGroup::Commands::const_iterator c = commands.begin();
|
for(cmSourceGroup::Commands::const_iterator c = commands.begin();
|
||||||
c != commands.end(); ++c)
|
c != commands.end(); ++c)
|
||||||
{
|
{
|
||||||
totalCommandStr += "\n\t";
|
totalCommandStr += "\n\t";
|
||||||
totalCommandStr += c->first;
|
temp= c->first;
|
||||||
|
cmSystemTools::ConvertToWindowsSlashes(temp);
|
||||||
|
totalCommandStr += temp;
|
||||||
totalCommand.Merge(c->second);
|
totalCommand.Merge(c->second);
|
||||||
}
|
}
|
||||||
// Create a dummy file with the name of the source if it does
|
// 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.
|
// Write out the dependencies for the rule.
|
||||||
fout << "USERDEP__HACK=";
|
fout << "USERDEP__HACK=";
|
||||||
|
std::string temp;
|
||||||
for(std::set<std::string>::const_iterator d = depends.begin();
|
for(std::set<std::string>::const_iterator d = depends.begin();
|
||||||
d != depends.end(); ++d)
|
d != depends.end(); ++d)
|
||||||
{
|
{
|
||||||
fout << "\\\n\t" << cmSystemTools::EscapeSpaces(d->c_str());
|
temp = *d;
|
||||||
|
fout << "\\\n\t" << cmSystemTools::EscapeSpaces(cmSystemTools::ConvertToWindowsSlashes(temp));
|
||||||
}
|
}
|
||||||
fout << "\n";
|
fout << "\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue