cmCommand refactor: cmExecuteProcessCommand

This commit is contained in:
Gabor Bencze
2019-07-25 17:31:39 +02:00
committed by Brad King
parent 0d87f5d83e
commit 3e5eb45ec1
3 changed files with 46 additions and 61 deletions
+3 -23
View File
@@ -8,35 +8,15 @@
#include <string>
#include <vector>
#include "cm_memory.hxx"
#include "cmCommand.h"
class cmExecutionStatus;
/** \class cmExecuteProcessCommand
/**
* \brief Command that adds a target to the build system.
*
* cmExecuteProcessCommand is a CMake language interface to the KWSys
* Process Execution implementation.
*/
class cmExecuteProcessCommand : public cmCommand
{
public:
/**
* This is a virtual constructor for the command.
*/
std::unique_ptr<cmCommand> Clone() override
{
return cm::make_unique<cmExecuteProcessCommand>();
}
/**
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status) override;
};
bool cmExecuteProcessCommand(std::vector<std::string> const& args,
cmExecutionStatus& status);
#endif