diff options
author | Brad King <brad.king@kitware.com> | 2024-12-10 15:27:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-12-10 16:41:27 (GMT) |
commit | 505ffdcbde4bf19b61e82dbb6a4e17d8ba831716 (patch) | |
tree | 70f42522ee91adb4e1010cddf74fb85a61bbb202 | |
parent | 5f33736c030d5b48e8df8ccf7c61c3bf233a22a9 (diff) | |
download | CMake-505ffdcbde4bf19b61e82dbb6a4e17d8ba831716.zip CMake-505ffdcbde4bf19b61e82dbb6a4e17d8ba831716.tar.gz CMake-505ffdcbde4bf19b61e82dbb6a4e17d8ba831716.tar.bz2 |
cmGlobalNinjaGenerator: Clarify order of codegen build statement logic
Make it more consistent with the equivalent logic for "all".
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 9542237..ee02237 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -1641,11 +1641,13 @@ void cmGlobalNinjaGenerator::WriteFolderTargets(std::ostream& os) this->ConvertToNinjaPath(cmStrCat(currentBinaryDir, "/codegen")); for (auto const& config : configs) { build.ExplicitDeps.clear(); + build.Outputs.front() = + this->BuildAlias(buildDirCodegenTarget, config); + for (DirectoryTarget::Target const& t : dt.Targets) { if (this->IsExcludedFromAllInConfig(t, config)) { continue; } - std::vector<cmSourceFile const*> customCommandSources; t.GT->GetCustomCommands(customCommandSources, config); for (cmSourceFile const* sf : customCommandSources) { @@ -1660,8 +1662,6 @@ void cmGlobalNinjaGenerator::WriteFolderTargets(std::ostream& os) } } - build.Outputs.front() = - this->BuildAlias(buildDirCodegenTarget, config); // Write target this->WriteBuild(this->EnableCrossConfigBuild() && this->CrossConfigs.count(config) |