diff options
author | Brad King <brad.king@kitware.com> | 2003-10-30 19:27:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-10-30 19:27:29 (GMT) |
commit | fc689df5d9329115ecf5e74f52a575f657b7a0c0 (patch) | |
tree | 6f064a5d2282a261c17ad330560e02eff87c2801 /Source/cmAddTestCommand.cxx | |
parent | cc3887c462390019b4d2a3dc2261b9665960752c (diff) | |
download | CMake-fc689df5d9329115ecf5e74f52a575f657b7a0c0.zip CMake-fc689df5d9329115ecf5e74f52a575f657b7a0c0.tar.gz CMake-fc689df5d9329115ecf5e74f52a575f657b7a0c0.tar.bz2 |
BUG: Backing out previous change until a deeper problem can be investigated.
Diffstat (limited to 'Source/cmAddTestCommand.cxx')
-rw-r--r-- | Source/cmAddTestCommand.cxx | 19 |
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; } |