diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-08-04 17:11:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:20 (GMT) |
commit | b316d0d417761dc16d6d7b6ae41ac56b4509b949 (patch) | |
tree | 66044d4da1509c14cd9af03ff7781c482c667286 /Source/cmSiteNameCommand.h | |
parent | b3aa789630c6411300080ec05d58e6cd9dcb7a2b (diff) | |
download | CMake-b316d0d417761dc16d6d7b6ae41ac56b4509b949.zip CMake-b316d0d417761dc16d6d7b6ae41ac56b4509b949.tar.gz CMake-b316d0d417761dc16d6d7b6ae41ac56b4509b949.tar.bz2 |
cmCommand refactor: cmSiteNameCommand
Diffstat (limited to 'Source/cmSiteNameCommand.h')
-rw-r--r-- | Source/cmSiteNameCommand.h | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmSiteNameCommand.h b/Source/cmSiteNameCommand.h index 0190abb..e8fc608 100644 --- a/Source/cmSiteNameCommand.h +++ b/Source/cmSiteNameCommand.h @@ -8,34 +8,14 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; -/** \class cmSiteNameCommand +/** * \brief site_name command * * cmSiteNameCommand implements the site_name CMake command */ -class cmSiteNameCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmSiteNameCommand>(); - } - - /** - * 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 cmSiteNameCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |