diff options
author | Brad King <brad.king@kitware.com> | 2018-08-24 11:31:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-08-29 13:38:32 (GMT) |
commit | bd7dd6d414303e8fc4da786107f4292768d87638 (patch) | |
tree | 50263834f698e97ad558bd4a02ce79570be41572 /Source/cmake.h | |
parent | ca7507cebc74fe4af3660cf85c72070c3f95a9ba (diff) | |
download | CMake-bd7dd6d414303e8fc4da786107f4292768d87638.zip CMake-bd7dd6d414303e8fc4da786107f4292768d87638.tar.gz CMake-bd7dd6d414303e8fc4da786107f4292768d87638.tar.bz2 |
cmake: Declare VariableWatch member only when used
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 86e06df..4b4c67c 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -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; |