瀏覽代碼

BUG: added arg0 to link libraries

Ken Martin 24 年之前
父節點
當前提交
237f960c89
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Source/cmTargetLinkLibrariesCommand.cxx

+ 3 - 2
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")
       {