COMP: Fix problem on compilers that cannot implicitly convert std::string to cmStdString

This commit is contained in:
Andy Cedilnik 2005-04-24 16:19:54 -04:00
parent d395b563ed
commit c736b5b958
1 changed files with 5 additions and 1 deletions

View File

@ -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());