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);