mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
BUG: Centralized generation of command line arguments in escaped form. This addresses bug#3786 for several platforms.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user