diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-08-04 16:58:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:20 (GMT) |
commit | 4fa9630b7ef645850da31a895ebaceb3bc583859 (patch) | |
tree | 0edc684551021d2d412e2e4e9ac174d31a82101a /Source/cmOptionCommand.h | |
parent | cfc7854ef07369d6fb614a4483543afaf72a5208 (diff) | |
download | CMake-4fa9630b7ef645850da31a895ebaceb3bc583859.zip CMake-4fa9630b7ef645850da31a895ebaceb3bc583859.tar.gz CMake-4fa9630b7ef645850da31a895ebaceb3bc583859.tar.bz2 |
cmCommand refactor: cmOptionCommand
Diffstat (limited to 'Source/cmOptionCommand.h')
-rw-r--r-- | Source/cmOptionCommand.h | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/Source/cmOptionCommand.h b/Source/cmOptionCommand.h index eddab03..cbd1cb8 100644 --- a/Source/cmOptionCommand.h +++ b/Source/cmOptionCommand.h @@ -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 |