diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-10-21 14:21:21 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-10-21 14:21:21 (GMT) |
commit | 75cfbef780bede118fa9f23e3e3bee1193cdbc68 (patch) | |
tree | cd0ba230e91a3e42cc0d13d5b54b644100741d31 /Source/cmake.cxx | |
parent | 55764f873c4ffbefd0050a7c1ad6ec096a550058 (diff) | |
download | CMake-75cfbef780bede118fa9f23e3e3bee1193cdbc68.zip CMake-75cfbef780bede118fa9f23e3e3bee1193cdbc68.tar.gz CMake-75cfbef780bede118fa9f23e3e3bee1193cdbc68.tar.bz2 |
cmake: Support --list-presets=workflow
Fixes: #24072
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 8800792..67a8e01 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -787,6 +787,7 @@ enum class ListPresets Build, Test, Package, + Workflow, All, }; } @@ -1144,6 +1145,8 @@ void cmake::SetArgs(const std::vector<std::string>& args) listPresets = ListPresets::Test; } else if (value == "package") { listPresets = ListPresets::Package; + } else if (value == "workflow") { + listPresets = ListPresets::Workflow; } else if (value == "all") { listPresets = ListPresets::All; } else { @@ -1313,6 +1316,8 @@ void cmake::SetArgs(const std::vector<std::string>& args) presetsGraph.PrintTestPresetList(); } else if (listPresets == ListPresets::Package) { presetsGraph.PrintPackagePresetList(); + } else if (listPresets == ListPresets::Workflow) { + presetsGraph.PrintWorkflowPresetList(); } else if (listPresets == ListPresets::All) { presetsGraph.PrintAllPresets(); } |