浏览代码

Merge topic 'autorcc-only-no-rebuild'

e4232b82 QtAutogen: Do not re-generate AUTORCC outputs on every build
Brad King 9 年之前
父节点
当前提交
25a76df17f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmQtAutoGenerators.cxx

+ 2 - 2
Source/cmQtAutoGenerators.cxx

@@ -456,8 +456,8 @@ static std::string ReadAll(const std::string& filename)
 
 bool cmQtAutoGenerators::RunAutogen(cmMakefile* makefile)
 {
-  if (!cmsys::SystemTools::FileExists(this->OutMocCppFilenameAbs.c_str()) ||
-      (this->OldCompileSettingsStr != this->CurrentCompileSettingsStr)) {
+  // If settings changed everything needs to be re-generated.
+  if (this->OldCompileSettingsStr != this->CurrentCompileSettingsStr) {
     this->GenerateAll = true;
   }