diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2019-08-13 13:54:31 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-13 13:55:09 (GMT) |
commit | f952d9c2573cd243e89f466ec79e9b7dbad9fd06 (patch) | |
tree | 6757bf33a6524d1ac7a5b8225088cf4e31a1b19d /Source/cmAddCustomCommandCommand.h | |
parent | 17b66165f651b20792b13a35b3a1a985d9b1505e (diff) | |
parent | 9ba0bf60c6a1dc0904c40575efd69bba580b0902 (diff) | |
download | CMake-f952d9c2573cd243e89f466ec79e9b7dbad9fd06.zip CMake-f952d9c2573cd243e89f466ec79e9b7dbad9fd06.tar.gz CMake-f952d9c2573cd243e89f466ec79e9b7dbad9fd06.tar.bz2 |
Merge topic 'free-command-a'
9ba0bf60c6 cmA*Command: Turn into free functions
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3660
Diffstat (limited to 'Source/cmAddCustomCommandCommand.h')
-rw-r--r-- | Source/cmAddCustomCommandCommand.h | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/Source/cmAddCustomCommandCommand.h b/Source/cmAddCustomCommandCommand.h index 931aeab..4f8c58f 100644 --- a/Source/cmAddCustomCommandCommand.h +++ b/Source/cmAddCustomCommandCommand.h @@ -8,38 +8,9 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; -/** \class cmAddCustomCommandCommand - * \brief cmAddCustomCommandCommand defines a new command (rule) that can - * be executed within the build process - * - */ - -class cmAddCustomCommandCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmAddCustomCommandCommand>(); - } - - /** - * 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; - -protected: - bool CheckOutputs(const std::vector<std::string>& outputs); -}; +bool cmAddCustomCommandCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |