mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 12:11:04 -06:00
cmake: Constify cmake::GetRegisteredGenerators
This commit is contained in:
@@ -811,7 +811,8 @@ void cmake::AddDefaultExtraGenerators()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmake::GetRegisteredGenerators(std::vector<GeneratorInfo>& generators)
|
void cmake::GetRegisteredGenerators(
|
||||||
|
std::vector<GeneratorInfo>& generators) const
|
||||||
{
|
{
|
||||||
for (RegisteredGeneratorsVector::const_iterator i = this->Generators.begin(),
|
for (RegisteredGeneratorsVector::const_iterator i = this->Generators.begin(),
|
||||||
e = this->Generators.end();
|
e = this->Generators.end();
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ public:
|
|||||||
void SetGlobalGenerator(cmGlobalGenerator*);
|
void SetGlobalGenerator(cmGlobalGenerator*);
|
||||||
|
|
||||||
///! Get the names of the current registered generators
|
///! Get the names of the current registered generators
|
||||||
void GetRegisteredGenerators(std::vector<GeneratorInfo>& generators);
|
void GetRegisteredGenerators(std::vector<GeneratorInfo>& generators) const;
|
||||||
|
|
||||||
///! Set the name of the selected generator-specific platform.
|
///! Set the name of the selected generator-specific platform.
|
||||||
void SetGeneratorPlatform(std::string const& ts)
|
void SetGeneratorPlatform(std::string const& ts)
|
||||||
|
|||||||
Reference in New Issue
Block a user