BUG: Centralized generation of command line arguments in escaped form. This addresses bug#3786 for several platforms.

This commit is contained in:
Brad King
2006-09-21 15:14:06 -04:00
parent 0952a96485
commit 2459ceb076
8 changed files with 96 additions and 70 deletions

View File

@@ -931,16 +931,7 @@ cmLocalUnixMakefileGenerator3
for(unsigned int j=1; j < commandLine.size(); ++j)
{
cmd += " ";
bool forceOn = cmSystemTools::GetForceUnixPaths();
if(forceOn && this->WindowsShell)
{
cmSystemTools::SetForceUnixPaths(false);
}
cmd += cmSystemTools::EscapeSpaces(commandLine[j].c_str());
if(forceOn && this->WindowsShell)
{
cmSystemTools::SetForceUnixPaths(true);
}
cmd += this->EscapeForShell(commandLine[j].c_str());
}
commands1.push_back(cmd);
}