From fc689df5d9329115ecf5e74f52a575f657b7a0c0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 30 Oct 2003 14:27:29 -0500 Subject: [PATCH] BUG: Backing out previous change until a deeper problem can be investigated. --- Source/cmAddTestCommand.cxx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Source/cmAddTestCommand.cxx b/Source/cmAddTestCommand.cxx index b3defb845..580277995 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; }