diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-07-25 14:46:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:19 (GMT) |
commit | dc629b5d97cd5486b2b0b385680a163e594922ae (patch) | |
tree | cc77de897a01d30358c464a77d4aa517da02e015 /Source/cmCMakeMinimumRequired.h | |
parent | e6a27adf9f1a17f13c5af888f778fde4cddebfac (diff) | |
download | CMake-dc629b5d97cd5486b2b0b385680a163e594922ae.zip CMake-dc629b5d97cd5486b2b0b385680a163e594922ae.tar.gz CMake-dc629b5d97cd5486b2b0b385680a163e594922ae.tar.bz2 |
cmCommand refactor: cmCMakeMinimumRequired
Diffstat (limited to 'Source/cmCMakeMinimumRequired.h')
-rw-r--r-- | Source/cmCMakeMinimumRequired.h | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/Source/cmCMakeMinimumRequired.h b/Source/cmCMakeMinimumRequired.h index 3881133..53f78f6 100644 --- a/Source/cmCMakeMinimumRequired.h +++ b/Source/cmCMakeMinimumRequired.h @@ -8,38 +8,14 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; -/** \class cmCMakeMinimumRequired +/** * \brief cmake_minimum_required command * * cmCMakeMinimumRequired implements the cmake_minimum_required CMake command */ -class cmCMakeMinimumRequired : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmCMakeMinimumRequired>(); - } - - /** - * 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: - std::vector<std::string> UnknownArguments; - bool EnforceUnknownArguments(std::string const& version_max); -}; +bool cmCMakeMinimumRequired(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |