diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-04-08 07:55:52 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-07-22 13:27:56 (GMT) |
commit | dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667 (patch) | |
tree | d631728ba6308e21581ab455fd341d9fc92dd11d /Source/cmEnableTestingCommand.h | |
parent | 28f2d12a055e025aa0ddeb9842f204f29181eaff (diff) | |
download | CMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.zip CMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.tar.gz CMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.tar.bz2 |
cmState: Support BuiltinCommands as free functions
Diffstat (limited to 'Source/cmEnableTestingCommand.h')
-rw-r--r-- | Source/cmEnableTestingCommand.h | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmEnableTestingCommand.h b/Source/cmEnableTestingCommand.h index fd50ebc..e4593f2 100644 --- a/Source/cmEnableTestingCommand.h +++ b/Source/cmEnableTestingCommand.h @@ -8,13 +8,9 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; -/** \class cmEnableTestingCommand +/** * \brief Enable testing for this directory and below. * * Produce the output testfile. This produces a file in the build directory @@ -27,23 +23,7 @@ class cmExecutionStatus; * Note that CTest expects to find this file in the build directory root; * therefore, this command should be in the source directory root too. */ -class cmEnableTestingCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmEnableTestingCommand>(); - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ - bool InitialPass(std::vector<std::string> const&, - cmExecutionStatus&) override; -}; +bool cmEnableTestingCommand(std::vector<std::string> const&, + cmExecutionStatus&); #endif |