mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
BUG: Fixed off-by-one error in file list loop. Fix submitted by David A. Karr.
This commit is contained in:
@@ -40,7 +40,7 @@ bool cmSourceGroupCommand::InitialPass(std::vector<std::string> const& args)
|
||||
sg = m_Makefile->GetSourceGroup(args[0].c_str());
|
||||
}
|
||||
unsigned int cc;
|
||||
for ( cc = 3; cc < args.size(); cc ++ )
|
||||
for ( cc = 2; cc < args.size(); cc ++ )
|
||||
{
|
||||
sg->AddSource(args[cc].c_str(), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user