diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-12 08:24:55 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-12 16:16:17 (GMT) |
commit | 706400d417e6435a442af2626a8430016e24aa9d (patch) | |
tree | 82de4249f36b7c59c3b89181ca385a8b0d908f82 /Source/cmRemoveDefinitionsCommand.h | |
parent | 7f8699026211c6a3055e767125021a91da4b1393 (diff) | |
download | CMake-706400d417e6435a442af2626a8430016e24aa9d.zip CMake-706400d417e6435a442af2626a8430016e24aa9d.tar.gz CMake-706400d417e6435a442af2626a8430016e24aa9d.tar.bz2 |
cmRemoveDefinitionsCommand: Port away from cmCommand
Ref: #19499
Diffstat (limited to 'Source/cmRemoveDefinitionsCommand.h')
-rw-r--r-- | Source/cmRemoveDefinitionsCommand.h | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/Source/cmRemoveDefinitionsCommand.h b/Source/cmRemoveDefinitionsCommand.h index 85d01d4..868416b 100644 --- a/Source/cmRemoveDefinitionsCommand.h +++ b/Source/cmRemoveDefinitionsCommand.h @@ -8,36 +8,9 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; -/** \class cmRemoveDefinitionsCommand - * \brief Specify a list of compiler defines - * - * cmRemoveDefinitionsCommand specifies a list of compiler defines. - * These defines will - * be removed from the compile command. - */ -class cmRemoveDefinitionsCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmRemoveDefinitionsCommand>(); - } - - /** - * 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 cmRemoveDefinitionsCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |