summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTargetLinkLibrariesCommand.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx
index 2ae962a..fb44de3 100644
--- a/Source/cmTargetLinkLibrariesCommand.cxx
+++ b/Source/cmTargetLinkLibrariesCommand.cxx
@@ -50,8 +50,9 @@ bool cmTargetLinkLibrariesCommand::Invoke(std::vector<std::string>& args)
}
// add libraries, nothe that there is an optional prefix
// of debug and optimized than can be used
- for(std::vector<std::string>::iterator i = args.begin();
- i != args.end(); ++i)
+ std::vector<std::string>::iterator i = args.begin();
+
+ for(++i; i != args.end(); ++i)
{
if (*i == "debug")
{