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

This commit is contained in:
Brad King 2007-04-10 08:49:42 -04:00
parent 0526552b10
commit 5415b65067
1 changed files with 2 additions and 0 deletions

View File

@ -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();