mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
CMakePresets.json: Make --list-presets show presets with no generator
Fixes: #22389
This commit is contained in:
@@ -1687,6 +1687,9 @@ void cmake::PrintPresetList(const cmCMakePresetsFile& file) const
|
||||
this->GetRegisteredGenerators(generators, false);
|
||||
auto filter =
|
||||
[&generators](const cmCMakePresetsFile::ConfigurePreset& preset) -> bool {
|
||||
if (preset.Generator.empty()) {
|
||||
return true;
|
||||
}
|
||||
auto condition = [&preset](const GeneratorInfo& info) -> bool {
|
||||
return info.name == preset.Generator;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user