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.h | |
parent | c9cd039e5f312f2717c6522ac7117791856f734b (diff) | |
download | CMake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.zip CMake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.tar.gz CMake-2065bd73cb6a9a3bc463c5bb0dc6877433782973.tar.bz2 |
cmState: Construct with mode
Diffstat (limited to 'Source/cmState.h')
-rw-r--r-- | Source/cmState.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/cmState.h b/Source/cmState.h index 9951b9a..c7f6a1e 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -35,12 +35,6 @@ class cmState friend class cmStateSnapshot; public: - cmState(); - ~cmState(); - - cmState(const cmState&) = delete; - cmState& operator=(const cmState&) = delete; - enum Mode { Unknown, @@ -51,6 +45,12 @@ public: CPack, }; + cmState(Mode mode); + ~cmState(); + + cmState(const cmState&) = delete; + cmState& operator=(const cmState&) = delete; + static const std::string& GetTargetTypeName( cmStateEnums::TargetType targetType); @@ -207,7 +207,6 @@ public: Mode GetMode() const; std::string GetModeString() const; - void SetMode(Mode mode); static std::string ModeToString(Mode mode); @@ -258,5 +257,5 @@ private: bool NMake = false; bool MSYSShell = false; bool NinjaMulti = false; - Mode CurrentMode = Unknown; + Mode StateMode = Unknown; }; |