summaryrefslogtreecommitdiffstats
path: root/Source/cmGetDirectoryPropertyCommand.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-07-25 17:19:50 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:19 (GMT)
commit067d1fa9c0d887efb35b859230d743307f04fecd (patch)
tree642de418830f290fbba647cd5ef10afb68c2c5e7 /Source/cmGetDirectoryPropertyCommand.h
parent40ba0addac09b7389d7c554d5c6e9eed74f377e3 (diff)
downloadCMake-067d1fa9c0d887efb35b859230d743307f04fecd.zip
CMake-067d1fa9c0d887efb35b859230d743307f04fecd.tar.gz
CMake-067d1fa9c0d887efb35b859230d743307f04fecd.tar.bz2
cmCommand refactor: cmGetDirectoryPropertyCommand
Diffstat (limited to 'Source/cmGetDirectoryPropertyCommand.h')
-rw-r--r--Source/cmGetDirectoryPropertyCommand.h24
1 files changed, 2 insertions, 22 deletions
diff --git a/Source/cmGetDirectoryPropertyCommand.h b/Source/cmGetDirectoryPropertyCommand.h
index 63a198a..f356ea5 100644
--- a/Source/cmGetDirectoryPropertyCommand.h
+++ b/Source/cmGetDirectoryPropertyCommand.h
@@ -8,29 +8,9 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-class cmGetDirectoryPropertyCommand : public cmCommand
-{
-public:
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmGetDirectoryPropertyCommand>();
- }
-
- /**
- * This is called when the command is first encountered in
- * the input file.
- */
- bool InitialPass(std::vector<std::string> const& args,
- cmExecutionStatus& status) override;
-
-private:
- void StoreResult(const std::string& variable, const char* prop);
-};
+bool cmGetDirectoryPropertyCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif