mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
BUG#259: Do not double quote arguments if they are already quoted when writing DartTestfile.txt.
This commit is contained in:
@@ -67,18 +67,19 @@ void cmAddTestCommand::FinalPass()
|
||||
++it;
|
||||
for (; it != m_Args.end(); ++it)
|
||||
{
|
||||
if(it->find(" ") != std::string::npos)
|
||||
{
|
||||
fout << " \"" << *it << "\"";
|
||||
}
|
||||
else
|
||||
{
|
||||
fout << " " << *it;
|
||||
}
|
||||
if((it->find(" ") != std::string::npos) &&
|
||||
(*it->begin() != '"' || *(it->end()-1) != '"'))
|
||||
{
|
||||
fout << " \"" << *it << "\"";
|
||||
}
|
||||
else
|
||||
{
|
||||
fout << " " << *it;
|
||||
}
|
||||
}
|
||||
fout << ")" << std::endl;
|
||||
fout.close();
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user