From 5d0f2aba7e231efefa28f54f9c1a5e36b4f374ea Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 10 Dec 2024 10:34:06 -0500 Subject: [PATCH] cmGlobalNinjaGenerator: Simplify per-directory configuration list lookup --- Source/cmGlobalNinjaGenerator.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index ee02237b0b..04c8c023b3 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -1631,8 +1631,7 @@ void cmGlobalNinjaGenerator::WriteFolderTargets(std::ostream& os) std::string const& currentBinaryDir = it.first; DirectoryTarget const& dt = it.second; std::vector configs = - dt.LG->GetMakefile()->GetGeneratorConfigs( - cmMakefile::IncludeEmptyConfig); + static_cast(dt.LG)->GetConfigNames(); // Setup target build.Comment = cmStrCat("Folder: ", currentBinaryDir);