summaryrefslogtreecommitdiff
path: root/Source/cmWriteFileCommand.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-08-09 11:56:34 +0200
committerBrad King <brad.king@kitware.com>2019-08-20 14:42:20 -0400
commit07ea93de5447e0bc20b4632fa61d965c02876cc8 (patch)
tree0202088867f5f93d129626482ca8cb37f5ed9326 /Source/cmWriteFileCommand.h
parentca3b9186bb0830b26765bd764d5d9d69cf93e33d (diff)
downloadcmake-07ea93de5447e0bc20b4632fa61d965c02876cc8.tar.gz
cmCommand refactor: cmWriteFileCommand
Diffstat (limited to 'Source/cmWriteFileCommand.h')
-rw-r--r--Source/cmWriteFileCommand.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmWriteFileCommand.h b/Source/cmWriteFileCommand.h
index 39618983a0..3e0e043760 100644
--- a/Source/cmWriteFileCommand.h
+++ b/Source/cmWriteFileCommand.h
@@ -8,33 +8,13 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-/** \class cmWriteFileCommand
+/**
* \brief Writes a message to a file
*
*/
-class cmWriteFileCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmWriteFileCommand>();
- }
-
- /**
- * 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 cmWriteFileCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif