diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-25 22:55:11 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-25 23:06:33 +0200 |
commit | 00f2298f0788404cf170ed6ab50b73ef890b4302 (patch) | |
tree | 718ebb79186b8c174b005de0ee26c95fca4b3af2 /Source/cmComputeLinkInformation.cxx | |
parent | 6254ba95784ae29616b17ad8b42d4f31560c2c65 (diff) | |
download | cmake-00f2298f0788404cf170ed6ab50b73ef890b4302.tar.gz |
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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx index 6ba0eedcda..6c3822fda5 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); |