浏览代码

cmQtAutoGenerators: Prefer a generator to access global generator.

Stephen Kelly 10 年之前
父节点
当前提交
6d8a125e49
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmQtAutoGenerators.cxx

+ 2 - 2
Source/cmQtAutoGenerators.cxx

@@ -369,7 +369,7 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmLocalGenerator* lg,
 
 
 #if defined(_WIN32) && !defined(__CYGWIN__)
 #if defined(_WIN32) && !defined(__CYGWIN__)
   bool usePRE_BUILD = false;
   bool usePRE_BUILD = false;
-  cmGlobalGenerator* gg = makefile->GetGlobalGenerator();
+  cmGlobalGenerator* gg = lg->GetGlobalGenerator();
   if(gg->GetName().find("Visual Studio") != std::string::npos)
   if(gg->GetName().find("Visual Studio") != std::string::npos)
     {
     {
     cmGlobalVisualStudioGenerator* vsgg =
     cmGlobalVisualStudioGenerator* vsgg =
@@ -396,7 +396,7 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmLocalGenerator* lg,
 
 
   std::vector<std::string> rcc_output;
   std::vector<std::string> rcc_output;
   bool const isNinja =
   bool const isNinja =
-    makefile->GetGlobalGenerator()->GetName() == "Ninja";
+    lg->GetGlobalGenerator()->GetName() == "Ninja";
   if(isNinja
   if(isNinja
 #if defined(_WIN32) && !defined(__CYGWIN__)
 #if defined(_WIN32) && !defined(__CYGWIN__)
         || usePRE_BUILD
         || usePRE_BUILD