summaryrefslogtreecommitdiffstats
path: root/Source/cmMarkAsAdvancedCommand.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-08-04 16:31:29 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:19 (GMT)
commit2b58ae75773ff826bb1c3e6c5a3bad31c5292f00 (patch)
tree15794e281f1a755a511568f2621f880cb97bc2f5 /Source/cmMarkAsAdvancedCommand.h
parent5b40a872dd2d50e2c72c76df79ce087403daa37d (diff)
downloadCMake-2b58ae75773ff826bb1c3e6c5a3bad31c5292f00.zip
CMake-2b58ae75773ff826bb1c3e6c5a3bad31c5292f00.tar.gz
CMake-2b58ae75773ff826bb1c3e6c5a3bad31c5292f00.tar.bz2
cmCommand refactor: cmMarkAsAdvancedCommand
Diffstat (limited to 'Source/cmMarkAsAdvancedCommand.h')
-rw-r--r--Source/cmMarkAsAdvancedCommand.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmMarkAsAdvancedCommand.h b/Source/cmMarkAsAdvancedCommand.h
index e367c46..de7bf08 100644
--- a/Source/cmMarkAsAdvancedCommand.h
+++ b/Source/cmMarkAsAdvancedCommand.h
@@ -8,34 +8,14 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-/** \class cmMarkAsAdvancedCommand
+/**
* \brief mark_as_advanced command
*
* cmMarkAsAdvancedCommand implements the mark_as_advanced CMake command
*/
-class cmMarkAsAdvancedCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmMarkAsAdvancedCommand>();
- }
-
- /**
- * 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 cmMarkAsAdvancedCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif