瀏覽代碼

STYLE: Added comment about why dependencies need to be chained to clarify code.

Brad King 18 年之前
父節點
當前提交
5415b65067
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Source/cmGlobalUnixMakefileGenerator3.cxx

+ 2 - 0
Source/cmGlobalUnixMakefileGenerator3.cxx

@@ -1166,6 +1166,8 @@ cmGlobalUnixMakefileGenerator3
     depends.push_back(tgtName);
     if(result->GetType() == cmTarget::STATIC_LIBRARY)
       {
+      // Since the static library itself does not list dependencies we
+      // need to chain its dependencies here.
       const cmTarget::LinkLibraryVectorType& tlibs 
         = result->GetLinkLibraries();
       for(cmTarget::LinkLibraryVectorType::const_iterator lib = tlibs.begin();