Browse Source

Merge topic 'automoc-case-change'

318ec07560 automoc: Remove existing output file before invoking moc

Acked-by: Kitware Robot <[email protected]>
Acked-by: buildbot <[email protected]>
Merge-request: !7985
Brad King 2 năm trước cách đây
mục cha
commit
aeac9b4660
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Source/cmQtAutoMocUic.cxx

+ 3 - 0
Source/cmQtAutoMocUic.cxx

@@ -1981,6 +1981,9 @@ void cmQtAutoMocUicT::JobCompileMocT::Process()
   std::string const& sourceFile = this->Mapping->SourceFile->FileName;
   std::string const& outputFile = this->Mapping->OutputFile;
 
+  // Remove output file in case the case of the source file has changed
+  cmSystemTools::RemoveFile(outputFile);
+
   // Compose moc command
   std::vector<std::string> cmd;
   {