| 22 | #include "cmake.h" |
| 23 | |
| 24 | bool cmCTestBuildCommand::InitialPass(std::vector<std::string> const& args, |
| 25 | cmExecutionStatus& status) const |
| 26 | { |
| 27 | static auto const parser = |
| 28 | cmArgumentParser<BuildArguments>{ MakeHandlerParser<BuildArguments>() } |
| 29 | .Bind("NUMBER_ERRORS"_s, &BuildArguments::NumberErrors) |
| 30 | .Bind("NUMBER_WARNINGS"_s, &BuildArguments::NumberWarnings) |
| 31 | .Bind("TARGET"_s, &BuildArguments::Target) |
| 32 | .Bind("CONFIGURATION"_s, &BuildArguments::Configuration) |
| 33 | .Bind("FLAGS"_s, &BuildArguments::Flags) |
| 34 | .Bind("PROJECT_NAME"_s, &BuildArguments::ProjectName) |
| 35 | .Bind("PARALLEL_LEVEL"_s, &BuildArguments::ParallelLevel); |
| 36 | |
| 37 | return this->Invoke(parser, args, status, [&](BuildArguments& a) { |
| 38 | return this->ExecuteHandlerCommand(a, status); |
| 39 | }); |
| 40 | } |
| 41 | |
| 42 | std::unique_ptr<cmCTestGenericHandler> cmCTestBuildCommand::InitializeHandler( |
| 43 | HandlerArguments& arguments, cmExecutionStatus& status) const |
nothing calls this directly
no test coverage detected