diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-08-09 09:38:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:20 (GMT) |
commit | c33c52bb327d448868cff6aff6d83c786bc81e7e (patch) | |
tree | 821cc538d6e4ee13818477259d2f363634409c35 /Source/cmUnsetCommand.h | |
parent | b316d0d417761dc16d6d7b6ae41ac56b4509b949 (diff) | |
download | CMake-c33c52bb327d448868cff6aff6d83c786bc81e7e.zip CMake-c33c52bb327d448868cff6aff6d83c786bc81e7e.tar.gz CMake-c33c52bb327d448868cff6aff6d83c786bc81e7e.tar.bz2 |
cmCommand refactor: cmUnsetCommand
Diffstat (limited to 'Source/cmUnsetCommand.h')
-rw-r--r-- | Source/cmUnsetCommand.h | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmUnsetCommand.h b/Source/cmUnsetCommand.h index 9b78d44..be4c166 100644 --- a/Source/cmUnsetCommand.h +++ b/Source/cmUnsetCommand.h @@ -8,34 +8,14 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; -/** \class cmUnsetCommand +/** * \brief Unset a CMAKE variable * * cmUnsetCommand unsets or removes a variable. */ -class cmUnsetCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmUnsetCommand>(); - } - - /** - * 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 cmUnsetCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |