summaryrefslogtreecommitdiffstats
path: root/Source/cmMakeDirectoryCommand.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-08-04 15:13:14 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:19 (GMT)
commit5b40a872dd2d50e2c72c76df79ce087403daa37d (patch)
tree83c30e9b3c202fefb383c4811a2d7640f6ba6a36 /Source/cmMakeDirectoryCommand.h
parente0b7ff4af2a8f5a2c2f746c0976cd22367212c8a (diff)
downloadCMake-5b40a872dd2d50e2c72c76df79ce087403daa37d.zip
CMake-5b40a872dd2d50e2c72c76df79ce087403daa37d.tar.gz
CMake-5b40a872dd2d50e2c72c76df79ce087403daa37d.tar.bz2
cmCommand refactor: cmMakeDirectoryCommand
Diffstat (limited to 'Source/cmMakeDirectoryCommand.h')
-rw-r--r--Source/cmMakeDirectoryCommand.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmMakeDirectoryCommand.h b/Source/cmMakeDirectoryCommand.h
index b1fb49b..2474383 100644
--- a/Source/cmMakeDirectoryCommand.h
+++ b/Source/cmMakeDirectoryCommand.h
@@ -8,13 +8,9 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-/** \class cmMakeDirectoryCommand
+/**
* \brief Specify auxiliary source code directories.
*
* cmMakeDirectoryCommand specifies source code directories
@@ -23,23 +19,7 @@ class cmExecutionStatus;
* A side effect of this command is to create a subdirectory in the build
* directory structure.
*/
-class cmMakeDirectoryCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmMakeDirectoryCommand>();
- }
-
- /**
- * 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 cmMakeDirectoryCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif