summaryrefslogtreecommitdiffstats
path: root/Source/cmAddTestCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-04-24 20:19:54 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-04-24 20:19:54 (GMT)
commitc736b5b95884f89f042537eda9a14e82fc9d8cc1 (patch)
tree35aa4467bb545514f114f91048333eeb3bb785de /Source/cmAddTestCommand.cxx
parentd395b563ede173721c240df2daad23284f453c4a (diff)
downloadCMake-c736b5b95884f89f042537eda9a14e82fc9d8cc1.zip
CMake-c736b5b95884f89f042537eda9a14e82fc9d8cc1.tar.gz
CMake-c736b5b95884f89f042537eda9a14e82fc9d8cc1.tar.bz2
COMP: Fix problem on compilers that cannot implicitly convert std::string to cmStdString
Diffstat (limited to 'Source/cmAddTestCommand.cxx')
-rw-r--r--Source/cmAddTestCommand.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmAddTestCommand.cxx b/Source/cmAddTestCommand.cxx
index 187a3ad..0c11851 100644
--- a/Source/cmAddTestCommand.cxx
+++ b/Source/cmAddTestCommand.cxx
@@ -36,7 +36,11 @@ bool cmAddTestCommand::InitialPass(std::vector<std::string> const& args)
// also expand any CMake variables
std::vector<cmStdString> arguments;
- arguments.assign(args.begin() + 2, args.end());
+ std::vector<std::string>::const_iterator it;
+ for ( it = args.begin() + 2; it != args.end(); ++ it )
+ {
+ arguments.push_back(*it);
+ }
cmTest* test = m_Makefile->CreateTest(args[0].c_str());
test->SetCommand(args[1].c_str());