From 60a8736378bbef58688c8a3dbfb2d0bce6aa1b6b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 13 Feb 2024 12:17:15 -0500 Subject: cmNinjaTargetGenerator: scanning depends on the module metadata Fixes: #25531 --- Source/cmNinjaTargetGenerator.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 8ae4cd4..9c75cd6 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -1195,6 +1195,8 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatements( this->LocalGenerator->GetTargetDirectory(this->GeneratorTarget), this->GetGlobalGenerator()->ConfigDirectory(config), '/', language, "Modules.json")); + build.ImplicitDeps.emplace_back( + this->GetTargetDependInfoPath(language, config)); for (auto const& scanFiles : scanningFiles) { if (!scanFiles.ScanningOutput.empty()) { build.ExplicitDeps.push_back(scanFiles.ScanningOutput); -- cgit v0.12