diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-09-16 19:17:27 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-09-27 15:09:06 (GMT) |
commit | 374d82bbcd461a5ee8d1d9d3a94abd8a26759c37 (patch) | |
tree | d390a842e701ad29e157ee5d097902a6305ddd02 /Source/cmake.h | |
parent | e3168128841485a0a579ad3b9125fdae5e12eec8 (diff) | |
download | CMake-374d82bbcd461a5ee8d1d9d3a94abd8a26759c37.zip CMake-374d82bbcd461a5ee8d1d9d3a94abd8a26759c37.tar.gz CMake-374d82bbcd461a5ee8d1d9d3a94abd8a26759c37.tar.bz2 |
cmake: Add --workflow mode
Fixes: #23118
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 8c0fece..54d0bb5 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -16,6 +16,7 @@ #include <vector> #include <cm/string_view> +#include <cmext/string_view> #include "cmGeneratedFileStream.h" #include "cmInstalledFile.h" @@ -600,6 +601,9 @@ public: //! run the --open option bool Open(const std::string& dir, bool dryRun); + //! run the --workflow option + int Workflow(const std::string& presetName, bool listPresets); + void UnwatchUnusedCli(const std::string& var); void WatchUnusedCli(const std::string& var); @@ -740,6 +744,16 @@ private: void AppendExtraGeneratorsDocumentation(std::vector<cmDocumentationEntry>&); #if !defined(CMAKE_BOOTSTRAP) + template <typename T> + const T* FindPresetForWorkflow( + cm::static_string_view type, + const std::map<std::string, cmCMakePresetsGraph::PresetPair<T>>& presets, + const cmCMakePresetsGraph::WorkflowPreset::WorkflowStep& step); + + std::function<int()> BuildWorkflowStep(const std::vector<std::string>& args); +#endif + +#if !defined(CMAKE_BOOTSTRAP) std::unique_ptr<cmMakefileProfilingData> ProfilingOutput; #endif }; |