| 2062 | } |
| 2063 | |
| 2064 | static std::pair<std::unique_ptr<cmExternalMakefileProjectGenerator>, |
| 2065 | std::string> |
| 2066 | createExtraGenerator( |
| 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 | |
| 2088 | std::unique_ptr<cmGlobalGenerator> cmake::CreateGlobalGenerator( |
| 2089 | std::string const& gname) |
no test coverage detected
searching dependent graphs…