Browse Source

Merge topic 'autorcc-only-no-rebuild'

e4232b82 QtAutogen: Do not re-generate AUTORCC outputs on every build
Brad King 9 năm trước cách đây
mục cha
commit
25a76df17f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;
   }