summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-12-06 13:09:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-12-06 13:10:03 (GMT)
commitaeac9b4660762e0067c7fc0a8763e381b76710b3 (patch)
treebbf06bb5dd024f2a1351929bb20d48ed662bd0f6
parent6f619d2de6527fa04a78889a1cf5492cceb72408 (diff)
parent318ec0756045818c6697ac3a496e8e8b8e984484 (diff)
downloadCMake-aeac9b4660762e0067c7fc0a8763e381b76710b3.zip
CMake-aeac9b4660762e0067c7fc0a8763e381b76710b3.tar.gz
CMake-aeac9b4660762e0067c7fc0a8763e381b76710b3.tar.bz2
Merge topic 'automoc-case-change'
318ec07560 automoc: Remove existing output file before invoking moc Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7985
-rw-r--r--Source/cmQtAutoMocUic.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmQtAutoMocUic.cxx b/Source/cmQtAutoMocUic.cxx
index 4753e61..683c18f 100644
--- a/Source/cmQtAutoMocUic.cxx
+++ b/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;
{