summaryrefslogtreecommitdiff
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-02 14:12:45 -0400
committerBrad King <brad.king@kitware.com>2021-07-12 12:21:44 -0400
commit2065bd73cb6a9a3bc463c5bb0dc6877433782973 (patch)
tree9df9d27f4fb78bbd86dcdd9659241fe96eec9cff /Source/cmState.cxx
parentc9cd039e5f312f2717c6522ac7117791856f734b (diff)
downloadcmake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.tar.gz
cmState: Construct with mode
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx12
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)