diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-08-09 09:54:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:20 (GMT) |
commit | ca3b9186bb0830b26765bd764d5d9d69cf93e33d (patch) | |
tree | 10285ef8aab9c39e02159395de4f2972f47a9832 /Source/cmVariableWatchCommand.h | |
parent | b1acc711f4cdf62a850c09a85256482db2e2af2e (diff) | |
download | CMake-ca3b9186bb0830b26765bd764d5d9d69cf93e33d.zip CMake-ca3b9186bb0830b26765bd764d5d9d69cf93e33d.tar.gz CMake-ca3b9186bb0830b26765bd764d5d9d69cf93e33d.tar.bz2 |
cmCommand refactor: cmVariableWatchCommand
Diffstat (limited to 'Source/cmVariableWatchCommand.h')
-rw-r--r-- | Source/cmVariableWatchCommand.h | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmVariableWatchCommand.h b/Source/cmVariableWatchCommand.h index 221269f..3f9f244 100644 --- a/Source/cmVariableWatchCommand.h +++ b/Source/cmVariableWatchCommand.h @@ -8,33 +8,13 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; -/** \class cmVariableWatchCommand +/** * \brief Watch when the variable changes and invoke command * */ -class cmVariableWatchCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmVariableWatchCommand>(); - } - - /** - * 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 cmVariableWatchCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |