diff options
author | Brad King <brad.king@kitware.com> | 2022-10-27 13:43:20 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-10-27 13:43:39 (GMT) |
commit | ab8801157917c574236ee472e864408405cb83cc (patch) | |
tree | 20ebd7ca40df3f65f53f209a2887b835a3f3f14f /Source/cmake.h | |
parent | 5eab7ea84bf2549eb14877fd148f54ecfb9e1b75 (diff) | |
parent | 7ecbe324b0ef02f63676f8431dbbbe8b4217f64f (diff) | |
download | CMake-ab8801157917c574236ee472e864408405cb83cc.zip CMake-ab8801157917c574236ee472e864408405cb83cc.tar.gz CMake-ab8801157917c574236ee472e864408405cb83cc.tar.bz2 |
Merge topic 'cmake-presets-workflow-arguments'
7ecbe324b0 cmake --workflow: add --fresh option
7d9aa0f00c cmake::Workflow: Refactor to use enum class argument
322193afcd cmake --workflow: print usage and exit on unrecognized argument
70aef29427 cmake --workflow: print usage message
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7825
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 5b5425c..4e7bb54 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -611,7 +611,18 @@ public: bool Open(const std::string& dir, bool dryRun); //! run the --workflow option - int Workflow(const std::string& presetName, bool listPresets); + enum class WorkflowListPresets + { + No, + Yes, + }; + enum class WorkflowFresh + { + No, + Yes, + }; + int Workflow(const std::string& presetName, WorkflowListPresets listPresets, + WorkflowFresh fresh); void UnwatchUnusedCli(const std::string& var); void WatchUnusedCli(const std::string& var); |