mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 06:40:48 -06:00
cmGlobalGenerator: Do not propagate const through GetCMakeInstance
Combine the const and non-const GetCMakeInstance to a const one and return a pointer to non-const cmake from it.
This commit is contained in:
@@ -139,8 +139,7 @@ public:
|
||||
void SetCMakeInstance(cmake *cm);
|
||||
|
||||
///! Get the CMake instance
|
||||
cmake *GetCMakeInstance() { return this->CMakeInstance; }
|
||||
const cmake *GetCMakeInstance() const { return this->CMakeInstance; }
|
||||
cmake *GetCMakeInstance() const { return this->CMakeInstance; }
|
||||
|
||||
void SetConfiguredFilesPath(cmGlobalGenerator* gen);
|
||||
const std::vector<cmLocalGenerator *>& GetLocalGenerators() const {
|
||||
|
||||
Reference in New Issue
Block a user