diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index c8fbc8fb8..d6f0db2f6 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();