QtAutogen: Get the global generator from the Makefile.

This commit is contained in:
Stephen Kelly 2015-06-06 14:59:22 +02:00
parent 61c0113c13
commit b3e2e332eb
1 changed files with 1 additions and 2 deletions

View File

@ -368,8 +368,7 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target)
#if defined(_WIN32) && !defined(__CYGWIN__)
bool usePRE_BUILD = false;
cmLocalGenerator* localGen = makefile->GetLocalGenerator();
cmGlobalGenerator* gg = localGen->GetGlobalGenerator();
cmGlobalGenerator* gg = makefile->GetGlobalGenerator();
if(gg->GetName().find("Visual Studio") != std::string::npos)
{
cmGlobalVisualStudioGenerator* vsgg =