summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-10 12:49:42 (GMT)
committerBrad King <brad.king@kitware.com>2007-04-10 12:49:42 (GMT)
commit5415b65067ed2eabaa1bb64a50ced230074dab53 (patch)
tree8221c1c49782122b33ba7434e833997162535054 /Source
parent0526552b1000a576cec7e7a9150315a3c15f3ff4 (diff)
downloadCMake-5415b65067ed2eabaa1bb64a50ced230074dab53.zip
CMake-5415b65067ed2eabaa1bb64a50ced230074dab53.tar.gz
CMake-5415b65067ed2eabaa1bb64a50ced230074dab53.tar.bz2
STYLE: Added comment about why dependencies need to be chained to clarify code.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index c8fbc8f..d6f0db2 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();