Add const versions of some getters.

This commit is contained in:
Nicolas Despres 2011-03-26 14:31:59 +01:00 committed by Peter Collingbourne
parent 3db2973bd2
commit 4532d36cc9
2 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,7 @@ public:
///! Get the CMake instance
cmake *GetCMakeInstance() { return this->CMakeInstance; };
const cmake *GetCMakeInstance() const { return this->CMakeInstance; };
void SetConfiguredFilesPath(cmGlobalGenerator* gen);
const std::vector<cmLocalGenerator *>& GetLocalGenerators() const {

View File

@ -83,6 +83,8 @@ public:
///! Get the GlobalGenerator this is associated with
cmGlobalGenerator *GetGlobalGenerator() {
return this->GlobalGenerator; };
const cmGlobalGenerator *GetGlobalGenerator() const {
return this->GlobalGenerator; };
///! Set the Global Generator, done on creation by the GlobalGenerator
void SetGlobalGenerator(cmGlobalGenerator *gg);