diff options
author | Brad King <brad.king@kitware.com> | 2021-07-02 18:12:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-12 16:21:44 (GMT) |
commit | 2065bd73cb6a9a3bc463c5bb0dc6877433782973 (patch) | |
tree | 9df9d27f4fb78bbd86dcdd9659241fe96eec9cff /Source/cmState.cxx | |
parent | c9cd039e5f312f2717c6522ac7117791856f734b (diff) | |
download | CMake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.zip CMake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.tar.gz CMake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.tar.bz2 |
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 ce6eb31..b235abd 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) |