|
|
@@ -18,8 +18,6 @@
|
|
|
#include "cmValue.h"
|
|
|
#include "cmake.h"
|
|
|
|
|
|
-class cmExecutionStatus;
|
|
|
-
|
|
|
std::unique_ptr<cmCommand> cmCTestBuildCommand::Clone()
|
|
|
{
|
|
|
auto ni = cm::make_unique<cmCTestBuildCommand>();
|
|
|
@@ -46,8 +44,6 @@ cmCTestGenericHandler* cmCTestBuildCommand::InitializeHandler()
|
|
|
cmCTestBuildHandler* handler = this->CTest->GetBuildHandler();
|
|
|
handler->Initialize();
|
|
|
|
|
|
- this->Handler = handler;
|
|
|
-
|
|
|
cmValue ctestBuildCommand =
|
|
|
this->Makefile->GetDefinition("CTEST_BUILD_COMMAND");
|
|
|
if (cmNonempty(ctestBuildCommand)) {
|
|
|
@@ -140,17 +136,16 @@ cmCTestGenericHandler* cmCTestBuildCommand::InitializeHandler()
|
|
|
return handler;
|
|
|
}
|
|
|
|
|
|
-bool cmCTestBuildCommand::InitialPass(std::vector<std::string> const& args,
|
|
|
- cmExecutionStatus& status)
|
|
|
+void cmCTestBuildCommand::ProcessAdditionalValues(
|
|
|
+ cmCTestGenericHandler* generic)
|
|
|
{
|
|
|
- bool ret = this->cmCTestHandlerCommand::InitialPass(args, status);
|
|
|
+ auto const* handler = static_cast<cmCTestBuildHandler*>(generic);
|
|
|
if (!this->NumberErrors.empty()) {
|
|
|
- this->Makefile->AddDefinition(
|
|
|
- this->NumberErrors, std::to_string(this->Handler->GetTotalErrors()));
|
|
|
+ this->Makefile->AddDefinition(this->NumberErrors,
|
|
|
+ std::to_string(handler->GetTotalErrors()));
|
|
|
}
|
|
|
if (!this->NumberWarnings.empty()) {
|
|
|
- this->Makefile->AddDefinition(
|
|
|
- this->NumberWarnings, std::to_string(this->Handler->GetTotalWarnings()));
|
|
|
+ this->Makefile->AddDefinition(this->NumberWarnings,
|
|
|
+ std::to_string(handler->GetTotalWarnings()));
|
|
|
}
|
|
|
- return ret;
|
|
|
}
|