summaryrefslogtreecommitdiffstats
path: root/Source/cmGetFilenameComponentCommand.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-07-25 17:24:45 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:19 (GMT)
commit6377efd154a385349f2e826c1388e1d768bfcbcb (patch)
treea41dcf4d7957011230c8972dba72bb9afbf0ff26 /Source/cmGetFilenameComponentCommand.h
parent067d1fa9c0d887efb35b859230d743307f04fecd (diff)
downloadCMake-6377efd154a385349f2e826c1388e1d768bfcbcb.zip
CMake-6377efd154a385349f2e826c1388e1d768bfcbcb.tar.gz
CMake-6377efd154a385349f2e826c1388e1d768bfcbcb.tar.bz2
cmCommand refactor: cmGetFilenameComponentCommand
Diffstat (limited to 'Source/cmGetFilenameComponentCommand.h')
-rw-r--r--Source/cmGetFilenameComponentCommand.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmGetFilenameComponentCommand.h b/Source/cmGetFilenameComponentCommand.h
index 1780b96..db5293b 100644
--- a/Source/cmGetFilenameComponentCommand.h
+++ b/Source/cmGetFilenameComponentCommand.h
@@ -8,35 +8,15 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-/** \class cmGetFilenameComponentCommand
+/**
* \brief Get a specific component of a filename.
*
* cmGetFilenameComponentCommand is a utility command used to get the path,
* name, extension or name without extension of a full filename.
*/
-class cmGetFilenameComponentCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmGetFilenameComponentCommand>();
- }
-
- /**
- * 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 cmGetFilenameComponentCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif