cmCommand refactor: cmOptionCommand

This commit is contained in:
Gabor Bencze
2019-08-04 18:58:39 +02:00
committed by Brad King
parent cfc7854ef0
commit 4fa9630b7e
3 changed files with 17 additions and 38 deletions
+3 -24
View File
@@ -8,34 +8,13 @@
#include <string>
#include <vector>
#include "cm_memory.hxx"
#include "cmCommand.h"
class cmExecutionStatus;
/** \class cmOptionCommand
/**
* \brief Provide an option to the user
*
* cmOptionCommand provides an option for the user to select
*/
class cmOptionCommand : public cmCommand
{
public:
/**
* This is a virtual constructor for the command.
*/
std::unique_ptr<cmCommand> Clone() override
{
return cm::make_unique<cmOptionCommand>();
}
/**
* 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 cmOptionCommand(std::vector<std::string> const& args,
cmExecutionStatus& status);
#endif