summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-03 14:51:51 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-14 18:36:28 (GMT)
commit76b598319ffe507870f918cdafe7ba7d43d9e195 (patch)
treec59ad1f359fadad5386de7521470966d4ea3b18c /Source/cmLocalGenerator.h
parent34c9ee2ed75e12c713bb49c699ac1dd882d1b8fa (diff)
downloadCMake-76b598319ffe507870f918cdafe7ba7d43d9e195.zip
CMake-76b598319ffe507870f918cdafe7ba7d43d9e195.tar.gz
CMake-76b598319ffe507870f918cdafe7ba7d43d9e195.tar.bz2
cmLocalGenerator: Initialize state before creating cmMakefile.
Access the state from the local generator in the cmMakefile.
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r--Source/cmLocalGenerator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index 44a2d99..100d27b 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -13,6 +13,7 @@
#define cmLocalGenerator_h
#include "cmStandardIncludes.h"
+#include "cmState.h"
class cmMakefile;
class cmGlobalGenerator;
@@ -88,6 +89,9 @@ public:
const cmGlobalGenerator *GetGlobalGenerator() const {
return this->GlobalGenerator; }
+ cmState* GetState() const;
+ cmState::Snapshot GetStateSnapshot() const;
+
/**
* Convert something to something else. This is a centralized conversion
* routine used by the generators to handle relative paths and the like.
@@ -442,6 +446,7 @@ protected:
void ReadInputFile();
cmMakefile *Makefile;
+ cmState::Snapshot StateSnapshot;
cmGlobalGenerator *GlobalGenerator;
std::vector<std::string> HomeDirectoryComponents;
std::vector<std::string> StartDirectoryComponents;