diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-25 20:55:11 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-25 21:06:33 (GMT) |
commit | 00f2298f0788404cf170ed6ab50b73ef890b4302 (patch) | |
tree | 718ebb79186b8c174b005de0ee26c95fca4b3af2 /Source/cmGeneratorTarget.cxx | |
parent | 6254ba95784ae29616b17ad8b42d4f31560c2c65 (diff) | |
download | CMake-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/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index ffdb54f..25fc8a7 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -1228,7 +1228,7 @@ public: : Preference(0), Target(target) { this->Makefile = this->Target->Makefile; - this->GG = this->Makefile->GetGlobalGenerator(); + this->GG = this->Target->GetLocalGenerator()->GetGlobalGenerator(); } void Consider(const char* lang) { |