瀏覽代碼

Merge topic 'automoc_timestamp_nmc_fix'

a48bb185c3 AutoGen: Fix moc and uic dependencies when building Qt itself

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5153
Brad King 5 年之前
父節點
當前提交
979a5bd4d1
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/cmQtAutoGenInitializer.cxx

+ 4 - 0
Source/cmQtAutoGenInitializer.cxx

@@ -1223,9 +1223,13 @@ bool cmQtAutoGenInitializer::InitAutogenTarget()
 
 
       if (this->Moc.ExecutableTarget != nullptr) {
       if (this->Moc.ExecutableTarget != nullptr) {
         dependencies.push_back(this->Moc.ExecutableTarget->Target->GetName());
         dependencies.push_back(this->Moc.ExecutableTarget->Target->GetName());
+      } else if (!this->Moc.Executable.empty()) {
+        dependencies.push_back(this->Moc.Executable);
       }
       }
       if (this->Uic.ExecutableTarget != nullptr) {
       if (this->Uic.ExecutableTarget != nullptr) {
         dependencies.push_back(this->Uic.ExecutableTarget->Target->GetName());
         dependencies.push_back(this->Uic.ExecutableTarget->Target->GetName());
+      } else if (!this->Uic.Executable.empty()) {
+        dependencies.push_back(this->Uic.Executable);
       }
       }
 
 
       // Create the custom command that outputs the timestamp file.
       // Create the custom command that outputs the timestamp file.