summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
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/cmState.h
parentc9cd039e5f312f2717c6522ac7117791856f734b (diff)
downloadCMake-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.h15
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;
};