summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmAddTestCommand.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/Source/cmAddTestCommand.cxx b/Source/cmAddTestCommand.cxx
index b3defb8..5802779 100644
--- a/Source/cmAddTestCommand.cxx
+++ b/Source/cmAddTestCommand.cxx
@@ -67,19 +67,18 @@ void cmAddTestCommand::FinalPass()
++it;
for (; it != m_Args.end(); ++it)
{
- if((it->find(" ") != std::string::npos) &&
- (*it->begin() != '"' || *(it->end()-1) != '"'))
- {
- fout << " \"" << *it << "\"";
- }
- else
- {
- fout << " " << *it;
- }
+ if(it->find(" ") != std::string::npos)
+ {
+ fout << " \"" << *it << "\"";
+ }
+ else
+ {
+ fout << " " << *it;
+ }
}
fout << ")" << std::endl;
fout.close();
- }
+ }
return;
}