summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakeMinimumRequired.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-07-25 14:46:18 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:19 (GMT)
commitdc629b5d97cd5486b2b0b385680a163e594922ae (patch)
treecc77de897a01d30358c464a77d4aa517da02e015 /Source/cmCMakeMinimumRequired.h
parente6a27adf9f1a17f13c5af888f778fde4cddebfac (diff)
downloadCMake-dc629b5d97cd5486b2b0b385680a163e594922ae.zip
CMake-dc629b5d97cd5486b2b0b385680a163e594922ae.tar.gz
CMake-dc629b5d97cd5486b2b0b385680a163e594922ae.tar.bz2
cmCommand refactor: cmCMakeMinimumRequired
Diffstat (limited to 'Source/cmCMakeMinimumRequired.h')
-rw-r--r--Source/cmCMakeMinimumRequired.h30
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