MCPcopy Create free account
hub / github.com/Kitware/CMake / createExtraGenerator

Function createExtraGenerator

Source/cmake.cxx:2064–2086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2062}
2063
2064static std::pair<std::unique_ptr<cmExternalMakefileProjectGenerator>,
2065 std::string>
2066createExtraGenerator(
2067 std::vector<cmExternalMakefileProjectGeneratorFactory*> const& in,
2068 std::string const& name)
2069{
2070 for (cmExternalMakefileProjectGeneratorFactory* i : in) {
2071 std::vector<std::string> const generators =
2072 i->GetSupportedGlobalGenerators();
2073 if (i->GetName() == name) { // Match aliases
2074 return { i->CreateExternalMakefileProjectGenerator(), generators.at(0) };
2075 }
2076 for (std::string const& g : generators) {
2077 std::string const fullName =
2078 cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
2079 g, i->GetName());
2080 if (fullName == name) {
2081 return { i->CreateExternalMakefileProjectGenerator(), g };
2082 }
2083 }
2084 }
2085 return { nullptr, name };
2086}
2087
2088std::unique_ptr<cmGlobalGenerator> cmake::CreateGlobalGenerator(
2089 std::string const& gname)

Callers 1

CreateGlobalGeneratorMethod · 0.85

Calls 4

GetNameMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…