diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-18 15:30:04 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-21 03:11:08 (GMT) |
commit | fdc3ba45832456fc17cff58850b16a02cee30e7c (patch) | |
tree | 3b4cd2b0c96e45d9c425077f1263af72d628431d /Source/cmExportCommand.h | |
parent | ebb9346490741ddc2ce6f552bc1be57dfc730cfa (diff) | |
download | CMake-fdc3ba45832456fc17cff58850b16a02cee30e7c.zip CMake-fdc3ba45832456fc17cff58850b16a02cee30e7c.tar.gz CMake-fdc3ba45832456fc17cff58850b16a02cee30e7c.tar.bz2 |
cmExportCommand: Port away from cmCommand
Diffstat (limited to 'Source/cmExportCommand.h')
-rw-r--r-- | Source/cmExportCommand.h | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/Source/cmExportCommand.h b/Source/cmExportCommand.h index 819a3c3..9655628 100644 --- a/Source/cmExportCommand.h +++ b/Source/cmExportCommand.h @@ -8,38 +8,9 @@ #include <string> #include <vector> -#include <cm/memory> - -#include "cmCommand.h" - class cmExecutionStatus; -class cmExportCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmExportCommand>(); - } - - /** - * 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; - -private: - bool HandlePackage(std::vector<std::string> const& args); - void StorePackageRegistryWin(std::string const& package, const char* content, - const char* hash); - void StorePackageRegistryDir(std::string const& package, const char* content, - const char* hash); - void ReportRegistryError(std::string const& msg, std::string const& key, - long err); -}; +bool cmExportCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |