summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx28
1 files changed, 21 insertions, 7 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index d5bc3d2..ee1e878 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -957,18 +957,32 @@ void cmake::AddDefaultExtraGenerators()
//----------------------------------------------------------------------------
-void cmake::GetRegisteredGenerators(std::vector<std::string>& names)
+void cmake::GetRegisteredGenerators(std::vector<GeneratorInfo>& generators)
{
- for(RegisteredGeneratorsVector::const_iterator i = this->Generators.begin();
- i != this->Generators.end(); ++i)
+ for (RegisteredGeneratorsVector::const_iterator
+ i = this->Generators.begin(), e = this->Generators.end();
+ i != e; ++i)
{
+ std::vector<std::string> names;
(*i)->GetGenerators(names);
+
+ for (size_t j = 0; j < names.size(); ++j)
+ {
+ GeneratorInfo info;
+ info.supportsToolset = (*i)->SupportsToolset();
+ info.name = names[j];
+ generators.push_back(info);
+ }
}
- for(RegisteredExtraGeneratorsMap::const_iterator
- i = this->ExtraGenerators.begin();
- i != this->ExtraGenerators.end(); ++i)
+
+ for (RegisteredExtraGeneratorsMap::const_iterator
+ i = this->ExtraGenerators.begin(), e = this->ExtraGenerators.end();
+ i != e; ++i)
{
- names.push_back(i->first);
+ GeneratorInfo info;
+ info.name = i->first;
+ info.supportsToolset = false;
+ generators.push_back(info);
}
}