diff options
author | Brad King <brad.king@kitware.com> | 2021-07-02 14:12:45 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-12 12:21:44 -0400 |
commit | 2065bd73cb6a9a3bc463c5bb0dc6877433782973 (patch) | |
tree | 9df9d27f4fb78bbd86dcdd9659241fe96eec9cff /Source/cmState.cxx | |
parent | c9cd039e5f312f2717c6522ac7117791856f734b (diff) | |
download | cmake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.tar.gz |
cmState: Construct with mode
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index ce6eb311e6..b235abd4e4 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -26,7 +26,8 @@ #include "cmSystemTools.h" #include "cmake.h" -cmState::cmState() +cmState::cmState(Mode mode) + : StateMode(mode) { this->CacheManager = cm::make_unique<cmCacheManager>(); this->GlobVerificationManager = cm::make_unique<cmGlobVerificationManager>(); @@ -771,17 +772,12 @@ unsigned int cmState::GetCacheMinorVersion() const cmState::Mode cmState::GetMode() const { - return this->CurrentMode; + return this->StateMode; } std::string cmState::GetModeString() const { - return ModeToString(this->CurrentMode); -} - -void cmState::SetMode(cmState::Mode mode) -{ - this->CurrentMode = mode; + return ModeToString(this->StateMode); } std::string cmState::ModeToString(cmState::Mode mode) |