Autogen: Register generated dependency files

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

Fixes: #17985
This commit is contained in:
Sebastian Holtermann authored and Brad King committed 2018-05-14 09:21:14 -04:00
1 parent fbe6cd1596
commit e461a136c1
1 file changed
+3
+3
View File
@@ -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);