mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
cmake.cxx: Simplify cmake::AppendExtraGeneratorsDocumentation()
This commit is contained in:
@@ -2972,21 +2972,14 @@ void cmake::AppendExtraGeneratorsDocumentation(
|
||||
|
||||
// Aliases:
|
||||
for (std::string const& a : eg->Aliases) {
|
||||
cmDocumentationEntry e;
|
||||
e.Name = a;
|
||||
e.Brief = doc;
|
||||
v.push_back(std::move(e));
|
||||
v.emplace_back(cmDocumentationEntry{ a, doc });
|
||||
}
|
||||
|
||||
// Full names:
|
||||
const std::vector<std::string> generators =
|
||||
eg->GetSupportedGlobalGenerators();
|
||||
for (std::string const& g : generators) {
|
||||
cmDocumentationEntry e;
|
||||
e.Name =
|
||||
cmExternalMakefileProjectGenerator::CreateFullGeneratorName(g, name);
|
||||
e.Brief = doc;
|
||||
v.push_back(std::move(e));
|
||||
for (std::string const& g : eg->GetSupportedGlobalGenerators()) {
|
||||
v.emplace_back(cmDocumentationEntry{
|
||||
cmExternalMakefileProjectGenerator::CreateFullGeneratorName(g, name),
|
||||
doc });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user