Browse Source

Autogen: Register generated dependency files

For CMP0058 record that rcc info files are generated by CMake.

Fixes: #17985
Sebastian Holtermann 7 years ago
parent
commit
e461a136c1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/cmQtAutoGenInitializer.cxx

+ 3 - 0
Source/cmQtAutoGenInitializer.cxx

@@ -994,6 +994,9 @@ void cmQtAutoGenInitializer::SetupCustomTargets()
   // Generate auto RCC info files
   if (this->RccEnabled) {
     for (Qrc const& qrc : this->Qrcs) {
+      // Register rcc info file as generated
+      makefile->AddCMakeOutputFile(qrc.InfoFile);
+
       cmGeneratedFileStream ofs;
       ofs.SetCopyIfDifferent(true);
       ofs.Open(qrc.InfoFile.c_str(), false, true);