STYLE: Added comment about why dependencies need to be chained to clarify code.
This commit is contained in:
parent
0526552b10
commit
5415b65067
|
@ -1166,6 +1166,8 @@ cmGlobalUnixMakefileGenerator3
|
||||||
depends.push_back(tgtName);
|
depends.push_back(tgtName);
|
||||||
if(result->GetType() == cmTarget::STATIC_LIBRARY)
|
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
|
const cmTarget::LinkLibraryVectorType& tlibs
|
||||||
= result->GetLinkLibraries();
|
= result->GetLinkLibraries();
|
||||||
for(cmTarget::LinkLibraryVectorType::const_iterator lib = tlibs.begin();
|
for(cmTarget::LinkLibraryVectorType::const_iterator lib = tlibs.begin();
|
||||||
|
|
Loading…
Reference in New Issue