summaryrefslogtreecommitdiff
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-10-25 10:59:19 -0400
committerKyle Edwards <kyle.edwards@kitware.com>2022-10-26 12:01:01 -0400
commit7d9aa0f00cd9f7c2ed3d0c710090e9901c4430e9 (patch)
tree22f5104cebf519b8ac3f7469d78a8cd01cdd994b /Source/cmake.cxx
parent322193afcdfd3d3ba5a456e5e6f64e3637091736 (diff)
downloadcmake-7d9aa0f00cd9f7c2ed3d0c710090e9901c4430e9.tar.gz
cmake::Workflow: Refactor to use enum class argument
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 67a8e0174a..169bf9e6e7 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -3732,7 +3732,8 @@ std::function<int()> cmake::BuildWorkflowStep(
}
#endif
-int cmake::Workflow(const std::string& presetName, bool listPresets)
+int cmake::Workflow(const std::string& presetName,
+ WorkflowListPresets listPresets)
{
#ifndef CMAKE_BOOTSTRAP
this->SetHomeDirectory(cmSystemTools::GetCurrentWorkingDirectory());
@@ -3747,7 +3748,7 @@ int cmake::Workflow(const std::string& presetName, bool listPresets)
return 1;
}
- if (listPresets) {
+ if (listPresets == WorkflowListPresets::Yes) {
settingsFile.PrintWorkflowPresetList();
return 0;
}