summaryrefslogtreecommitdiff
path: root/Source/cmake.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/cmake.cxx
parentc9cd039e5f312f2717c6522ac7117791856f734b (diff)
downloadcmake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.tar.gz
cmState: Construct with mode
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 73f5ad5b87..a2b2571be8 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -162,11 +162,10 @@ cmake::cmake(Role role, cmState::Mode mode)
#ifndef CMAKE_BOOTSTRAP
, VariableWatch(cm::make_unique<cmVariableWatch>())
#endif
- , State(cm::make_unique<cmState>())
+ , State(cm::make_unique<cmState>(mode))
, Messenger(cm::make_unique<cmMessenger>())
{
this->TraceFile.close();
- this->State->SetMode(mode);
this->CurrentSnapshot = this->State->CreateBaseSnapshot();
#ifdef __APPLE__