summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-25 20:55:11 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-25 21:06:33 (GMT)
commit00f2298f0788404cf170ed6ab50b73ef890b4302 (patch)
tree718ebb79186b8c174b005de0ee26c95fca4b3af2 /Source/cmComputeLinkInformation.cxx
parent6254ba95784ae29616b17ad8b42d4f31560c2c65 (diff)
downloadCMake-00f2298f0788404cf170ed6ab50b73ef890b4302.zip
CMake-00f2298f0788404cf170ed6ab50b73ef890b4302.tar.gz
CMake-00f2298f0788404cf170ed6ab50b73ef890b4302.tar.bz2
Reduce uses of cmMakefile::GetGlobalGenerator.
Don't assume the cmMakefile has a global generator.
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 6ba0eed..6c3822f 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -769,7 +769,7 @@ void cmComputeLinkInformation::AddSharedDepItem(std::string const& item,
std::string lib;
if(tgt)
{
- gtgt = tgt->GetMakefile()->GetGlobalGenerator()->GetGeneratorTarget(tgt);
+ gtgt = this->GlobalGenerator->GetGeneratorTarget(tgt);
lib = gtgt->GetFullPath(this->Config, this->UseImportLibrary);
this->AddLibraryRuntimeInfo(lib, tgt);