summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceGroupCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-07-23 14:39:41 (GMT)
committerBrad King <brad.king@kitware.com>2003-07-23 14:39:41 (GMT)
commit296ded5e4dcb8deef6db6ab30ca357c9b62b32b0 (patch)
treea34a1750bcbb3e6d227e69707f6ce9d2b67fcf8e /Source/cmSourceGroupCommand.cxx
parent8d22e9f70a1653fc6620cc8b5389d1036ec27596 (diff)
downloadCMake-296ded5e4dcb8deef6db6ab30ca357c9b62b32b0.zip
CMake-296ded5e4dcb8deef6db6ab30ca357c9b62b32b0.tar.gz
CMake-296ded5e4dcb8deef6db6ab30ca357c9b62b32b0.tar.bz2
BUG: Fixed off-by-one error in file list loop. Fix submitted by David A. Karr.
Diffstat (limited to 'Source/cmSourceGroupCommand.cxx')
-rw-r--r--Source/cmSourceGroupCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSourceGroupCommand.cxx b/Source/cmSourceGroupCommand.cxx
index 4625b1f..2978aed 100644
--- a/Source/cmSourceGroupCommand.cxx
+++ b/Source/cmSourceGroupCommand.cxx
@@ -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);
}