Commit b3e2e332 authored by Stephen Kelly's avatar Stephen Kelly
Browse files

QtAutogen: Get the global generator from the Makefile.

parent 61c0113c
...@@ -368,8 +368,7 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target) ...@@ -368,8 +368,7 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target)
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)
bool usePRE_BUILD = false; bool usePRE_BUILD = false;
cmLocalGenerator* localGen = makefile->GetLocalGenerator(); cmGlobalGenerator* gg = makefile->GetGlobalGenerator();
cmGlobalGenerator* gg = localGen->GetGlobalGenerator();
if(gg->GetName().find("Visual Studio") != std::string::npos) if(gg->GetName().find("Visual Studio") != std::string::npos)
{ {
cmGlobalVisualStudioGenerator* vsgg = cmGlobalVisualStudioGenerator* vsgg =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment