diff options
author | Brad King <brad.king@kitware.com> | 2021-07-02 18:23:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-12 16:21:52 (GMT) |
commit | 6c440ea3ce36d4c5b1629f111f376e809c7e99b2 (patch) | |
tree | e25d3289140a86f185698631e6082ba1991c597e /Source/cmake.h | |
parent | 2065bd73cb6a9a3bc463c5bb0dc6877433782973 (diff) | |
download | CMake-6c440ea3ce36d4c5b1629f111f376e809c7e99b2.zip CMake-6c440ea3ce36d4c5b1629f111f376e809c7e99b2.tar.gz CMake-6c440ea3ce36d4c5b1629f111f376e809c7e99b2.tar.bz2 |
cmake: Model normal and try-compile project kinds explicitly
Construct with the project kind instead of mutating state after
construction.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 5a2a88f..12cce7e 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -168,7 +168,8 @@ public: static const int DEFAULT_BUILD_PARALLEL_LEVEL = 0; /// Default constructor - cmake(Role role, cmState::Mode mode); + cmake(Role role, cmState::Mode mode, + cmState::ProjectKind projectKind = cmState::ProjectKind::Normal); /// Destructor ~cmake(); @@ -356,7 +357,6 @@ public: //! Is this cmake running as a result of a TRY_COMPILE command bool GetIsInTryCompile() const; - void SetIsInTryCompile(bool b); #ifndef CMAKE_BOOTSTRAP void SetWarningFromPreset(const std::string& name, |