mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
ENH: only 5 failing tests for VS 10
This commit is contained in:
@@ -26,6 +26,7 @@ cmLocalVisualStudioGenerator::cmLocalVisualStudioGenerator()
|
||||
{
|
||||
this->WindowsShell = true;
|
||||
this->WindowsVSIDE = true;
|
||||
this->NeedXMLEscape = false;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
@@ -231,8 +232,26 @@ cmLocalVisualStudioGenerator
|
||||
}
|
||||
else
|
||||
{
|
||||
script += this->EscapeForShell(commandLine[j].c_str(),
|
||||
if(this->NeedXMLEscape)
|
||||
{
|
||||
std::string arg = commandLine[j];
|
||||
cmSystemTools::ReplaceString(arg, "&", "&");
|
||||
cmSystemTools::ReplaceString(arg, "<", "<");
|
||||
cmSystemTools::ReplaceString(arg, ">", ">");
|
||||
if(arg.find(" ") != arg.npos)
|
||||
{
|
||||
std::string q("\"");
|
||||
arg = q + arg +q;
|
||||
}
|
||||
script += arg;
|
||||
//script += this->EscapeForShell(arg.c_str(),
|
||||
//escapeAllowMakeVars);
|
||||
}
|
||||
else
|
||||
{
|
||||
script += this->EscapeForShell(commandLine[j].c_str(),
|
||||
escapeAllowMakeVars);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user