mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
cmake: Declare VariableWatch member only when used
This commit is contained in:
@@ -297,8 +297,10 @@ public:
|
||||
///! this is called by generators to update the progress
|
||||
void UpdateProgress(const char* msg, float prog);
|
||||
|
||||
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
||||
///! Get the variable watch object
|
||||
cmVariableWatch* GetVariableWatch() { return this->VariableWatch; }
|
||||
#endif
|
||||
|
||||
void GetGeneratorDocumentation(std::vector<cmDocumentationEntry>&);
|
||||
|
||||
@@ -493,8 +495,6 @@ protected:
|
||||
|
||||
void GenerateGraphViz(const char* fileName) const;
|
||||
|
||||
cmVariableWatch* VariableWatch;
|
||||
|
||||
private:
|
||||
ProgressCallbackType ProgressCallback;
|
||||
void* ProgressCallbackClientData;
|
||||
@@ -525,6 +525,10 @@ private:
|
||||
std::string GraphVizFile;
|
||||
InstalledFilesMap InstalledFiles;
|
||||
|
||||
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
||||
cmVariableWatch* VariableWatch;
|
||||
#endif
|
||||
|
||||
cmState* State;
|
||||
cmStateSnapshot CurrentSnapshot;
|
||||
cmMessenger* Messenger;
|
||||
|
||||
Reference in New Issue
Block a user