summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-02 18:12:45 (GMT)
committerBrad King <brad.king@kitware.com>2021-07-12 16:21:44 (GMT)
commit2065bd73cb6a9a3bc463c5bb0dc6877433782973 (patch)
tree9df9d27f4fb78bbd86dcdd9659241fe96eec9cff /Source/cmake.cxx
parentc9cd039e5f312f2717c6522ac7117791856f734b (diff)
downloadCMake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.zip
CMake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.tar.gz
CMake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.tar.bz2
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 73f5ad5..a2b2571 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__