소스 검색

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 년 전
부모
커밋
aeac9b4660
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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& sourceFile = this->Mapping->SourceFile->FileName;
   std::string const& outputFile = this->Mapping->OutputFile;
   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
   // Compose moc command
   std::vector<std::string> cmd;
   std::vector<std::string> cmd;
   {
   {