|
@ -918,8 +918,10 @@ int do_workflow(int ac, char const* const* av) |
|
|
return -1; |
|
|
return -1; |
|
|
#else
|
|
|
#else
|
|
|
using WorkflowListPresets = cmake::WorkflowListPresets; |
|
|
using WorkflowListPresets = cmake::WorkflowListPresets; |
|
|
|
|
|
using WorkflowFresh = cmake::WorkflowFresh; |
|
|
std::string presetName; |
|
|
std::string presetName; |
|
|
auto listPresets = WorkflowListPresets::No; |
|
|
auto listPresets = WorkflowListPresets::No; |
|
|
|
|
|
auto fresh = WorkflowFresh::No; |
|
|
|
|
|
|
|
|
using CommandArgument = |
|
|
using CommandArgument = |
|
|
cmCommandLineArgument<bool(std::string const& value)>; |
|
|
cmCommandLineArgument<bool(std::string const& value)>; |
|
@ -932,6 +934,11 @@ int do_workflow(int ac, char const* const* av) |
|
|
listPresets = WorkflowListPresets::Yes; |
|
|
listPresets = WorkflowListPresets::Yes; |
|
|
return true; |
|
|
return true; |
|
|
} }, |
|
|
} }, |
|
|
|
|
|
CommandArgument{ "--fresh", CommandArgument::Values::Zero, |
|
|
|
|
|
[&fresh](const std::string&) -> bool { |
|
|
|
|
|
fresh = WorkflowFresh::Yes; |
|
|
|
|
|
return true; |
|
|
|
|
|
} }, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
std::vector<std::string> inputArgs; |
|
|
std::vector<std::string> inputArgs; |
|
@ -968,6 +975,8 @@ int do_workflow(int ac, char const* const* av) |
|
|
"Options:\n" |
|
|
"Options:\n" |
|
|
" --preset <preset> = Workflow preset to execute.\n" |
|
|
" --preset <preset> = Workflow preset to execute.\n" |
|
|
" --list-presets = List available workflow presets.\n" |
|
|
" --list-presets = List available workflow presets.\n" |
|
|
|
|
|
" --fresh = Configure a fresh build tree, removing any " |
|
|
|
|
|
"existing cache file.\n" |
|
|
; |
|
|
; |
|
|
/* clang-format on */ |
|
|
/* clang-format on */ |
|
|
return 1; |
|
|
return 1; |
|
@ -982,7 +991,7 @@ int do_workflow(int ac, char const* const* av) |
|
|
cmakemainProgressCallback(msg, prog, &cm); |
|
|
cmakemainProgressCallback(msg, prog, &cm); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
return cm.Workflow(presetName, listPresets); |
|
|
|
|
|
|
|
|
return cm.Workflow(presetName, listPresets, fresh); |
|
|
#endif
|
|
|
#endif
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|