summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoMocUic.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-03-30 13:54:02 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-03-30 13:54:09 (GMT)
commitf14e19c053852615d936d63352f788e2e558737e (patch)
tree1a33c5d91498bc7fd10281ff390591e065b1e6b8 /Source/cmQtAutoMocUic.cxx
parent6081fdf41534e8da6acd403eb7b3707dcc9d47b8 (diff)
parentca7c76269b0dbf899f206c6d0c6d7b26fd0af223 (diff)
downloadCMake-f14e19c053852615d936d63352f788e2e558737e.zip
CMake-f14e19c053852615d936d63352f788e2e558737e.tar.gz
CMake-f14e19c053852615d936d63352f788e2e558737e.tar.bz2
Merge topic 'ninja-automoc-cycle'
ca7c76269b Tests: Add test for Ninja automoc dependency cyle 54ad3e4958 autogen: Don't include SKIP_AUTOMOC files in depfile Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Jörg Bornemann <joerg.bornemann@qt.io> Acked-by: Craig Scott <craig.scott@crascit.com> Merge-request: !5956
Diffstat (limited to 'Source/cmQtAutoMocUic.cxx')
-rw-r--r--Source/cmQtAutoMocUic.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmQtAutoMocUic.cxx b/Source/cmQtAutoMocUic.cxx
index 02b32dd..c32c965 100644
--- a/Source/cmQtAutoMocUic.cxx
+++ b/Source/cmQtAutoMocUic.cxx
@@ -2248,6 +2248,13 @@ void cmQtAutoMocUicT::JobDepFilesMergeT::Process()
std::for_each(this->MocEval().SourceMappings.begin(),
this->MocEval().SourceMappings.end(), processMappingEntry);
+ // Remove SKIP_AUTOMOC files
+ dependencies.erase(std::remove_if(dependencies.begin(), dependencies.end(),
+ [this](const std::string& dep) {
+ return this->MocConst().skipped(dep);
+ }),
+ dependencies.end());
+
// Remove duplicates to make the depfile smaller
std::sort(dependencies.begin(), dependencies.end());
dependencies.erase(std::unique(dependencies.begin(), dependencies.end()),