summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-24 16:33:24 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-10-24 16:33:31 (GMT)
commitc3f04fe44d43f42961d6ee1e74f3a3e5c7b0677a (patch)
tree3eb5d37be6a2ea0b92dc898f588529d5bb07afda /Source
parent29f66bd1cf834b5ea1d62936169260dc75f4d2e9 (diff)
parent75cfbef780bede118fa9f23e3e3bee1193cdbc68 (diff)
downloadCMake-c3f04fe44d43f42961d6ee1e74f3a3e5c7b0677a.zip
CMake-c3f04fe44d43f42961d6ee1e74f3a3e5c7b0677a.tar.gz
CMake-c3f04fe44d43f42961d6ee1e74f3a3e5c7b0677a.tar.bz2
Merge topic 'cmake-presets-list-workflow-type' into release-3.25
75cfbef780 cmake: Support --list-presets=workflow Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Tested-by: Craig Scott <craig.scott@crascit.com> Merge-request: !7816
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx5
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();
}