summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-10 08:49:42 -0400
committerBrad King <brad.king@kitware.com>2007-04-10 08:49:42 -0400
commit5415b65067ed2eabaa1bb64a50ced230074dab53 (patch)
tree8221c1c49782122b33ba7434e833997162535054
parent0526552b1000a576cec7e7a9150315a3c15f3ff4 (diff)
downloadcmake-5415b65067ed2eabaa1bb64a50ced230074dab53.tar.gz
STYLE: Added comment about why dependencies need to be chained to clarify code.
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index c8fbc8fb80..d6f0db2f6f 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/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();