diff options
author | Brad King <brad.king@kitware.com> | 2024-12-10 15:09:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-12-10 16:46:31 (GMT) |
commit | 5ce1ca607f8c99a81b7155940ff3ce7afa13140b (patch) | |
tree | 3c22e8893544f0866978bc21defce951708e11ca /Source | |
parent | 5d0f2aba7e231efefa28f54f9c1a5e36b4f374ea (diff) | |
download | CMake-5ce1ca607f8c99a81b7155940ff3ce7afa13140b.zip CMake-5ce1ca607f8c99a81b7155940ff3ce7afa13140b.tar.gz CMake-5ce1ca607f8c99a81b7155940ff3ce7afa13140b.tar.bz2 |
Ninja: Add missing top-level codegen dependencies on per-directory codegen
In commit 197cb419d1 (add_custom_command: Add CODEGEN support,
2024-05-27, v3.31.0-rc1~394^2) we accidentally left out the global
`codegen` target's dependencies on the per-directory `codegen` targets.
Add them for parity with the `all` target.
Fixes: #26517
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 04c8c02..2933a4f 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -1661,6 +1661,13 @@ void cmGlobalNinjaGenerator::WriteFolderTargets(std::ostream& os) } } + for (DirectoryTarget::Dir const& d : dt.Children) { + if (!d.ExcludeFromAll) { + build.ExplicitDeps.emplace_back(this->BuildAlias( + this->ConvertToNinjaPath(cmStrCat(d.Path, "/codegen")), config)); + } + } + // Write target this->WriteBuild(this->EnableCrossConfigBuild() && this->CrossConfigs.count(config) |