diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2024-02-13 17:17:15 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2024-02-15 03:36:37 (GMT) |
commit | 60a8736378bbef58688c8a3dbfb2d0bce6aa1b6b (patch) | |
tree | 835c60019912b9f8b1b6c6fed9929b6c52cb8db9 | |
parent | 52036ce090cf6f94a9389c2614b88cc8966f6e32 (diff) | |
download | CMake-60a8736378bbef58688c8a3dbfb2d0bce6aa1b6b.zip CMake-60a8736378bbef58688c8a3dbfb2d0bce6aa1b6b.tar.gz CMake-60a8736378bbef58688c8a3dbfb2d0bce6aa1b6b.tar.bz2 |
cmNinjaTargetGenerator: scanning depends on the module metadata
Fixes: #25531
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); |