From c736b5b95884f89f042537eda9a14e82fc9d8cc1 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Sun, 24 Apr 2005 16:19:54 -0400 Subject: COMP: Fix problem on compilers that cannot implicitly convert std::string to cmStdString --- Source/cmAddTestCommand.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 const& args) // also expand any CMake variables std::vector arguments; - arguments.assign(args.begin() + 2, args.end()); + std::vector::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()); -- cgit v0.12