summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.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/cmGeneratorTarget.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/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx2
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)
{