summaryrefslogtreecommitdiffstats
path: root/Source/cmMessageCommand.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-08-04 16:39:45 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:20 (GMT)
commitcfc7854ef07369d6fb614a4483543afaf72a5208 (patch)
treefb8ab8ed163cb4dd52bd6bcef559d03657d43d0a /Source/cmMessageCommand.h
parent71724633a24fccfdf3d56a19176d8afe637be843 (diff)
downloadCMake-cfc7854ef07369d6fb614a4483543afaf72a5208.zip
CMake-cfc7854ef07369d6fb614a4483543afaf72a5208.tar.gz
CMake-cfc7854ef07369d6fb614a4483543afaf72a5208.tar.bz2
cmCommand refactor: CmMessageCommand
Diffstat (limited to 'Source/cmMessageCommand.h')
-rw-r--r--Source/cmMessageCommand.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmMessageCommand.h b/Source/cmMessageCommand.h
index ef89d59..7d544c4 100644
--- a/Source/cmMessageCommand.h
+++ b/Source/cmMessageCommand.h
@@ -8,33 +8,13 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-/** \class cmMessageCommand
+/**
* \brief Displays a message to the user
*
*/
-class cmMessageCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmMessageCommand>();
- }
-
- /**
- * 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 cmMessageCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif