浏览代码

cmGlobalGenerator: Move QtAutogen handling to Compute().

Stephen Kelly 10 年之前
父节点
当前提交
0368552d7f
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      Source/cmGlobalGenerator.cxx

+ 7 - 5
Source/cmGlobalGenerator.cxx

@@ -1230,11 +1230,6 @@ bool cmGlobalGenerator::Compute()
 
   this->CreateGenerationObjects();
 
-  return true;
-}
-
-void cmGlobalGenerator::Generate()
-{
 #ifdef CMAKE_BUILD_WITH_CMAKE
   // Iterate through all targets and set up automoc for those which have
   // the AUTOMOC, AUTOUIC or AUTORCC property set
@@ -1265,6 +1260,13 @@ void cmGlobalGenerator::Generate()
     }
 #endif
 
+  return true;
+}
+
+void cmGlobalGenerator::Generate()
+{
+  unsigned int i;
+
   // Trace the dependencies, after that no custom commands should be added
   // because their dependencies might not be handled correctly
   for (i = 0; i < this->LocalGenerators.size(); ++i)