summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-07 21:49:11 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-07 21:49:11 (GMT)
commit410d7b0f364e94ae53c2e1e99a3876c3199d4e44 (patch)
treed4b2e84f0a338186903dcb546fc73c0184ecf090 /Source/cmMakefileLibraryTargetGenerator.cxx
parent732784c0bcdcf0c227107cf4f0077a8dc9ac8d44 (diff)
downloadCMake-410d7b0f364e94ae53c2e1e99a3876c3199d4e44.zip
CMake-410d7b0f364e94ae53c2e1e99a3876c3199d4e44.tar.gz
CMake-410d7b0f364e94ae53c2e1e99a3876c3199d4e44.tar.bz2
ENH: Avoid computing link information for static library targets. They do not link.
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 8e96fd6..d0e2fcb 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -720,7 +720,11 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
// Collect up flags to link in needed libraries.
cmOStringStream linklibs;
- this->LocalGenerator->OutputLinkLibraries(linklibs, *this->Target, relink);
+ if(this->Target->GetType() != cmTarget::STATIC_LIBRARY)
+ {
+ this->LocalGenerator
+ ->OutputLinkLibraries(linklibs, *this->Target, relink);
+ }
// Construct object file lists that may be needed to expand the
// rule.