diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-07-25 17:24:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:19 (GMT) |
commit | 6377efd154a385349f2e826c1388e1d768bfcbcb (patch) | |
tree | a41dcf4d7957011230c8972dba72bb9afbf0ff26 /Source/cmGetFilenameComponentCommand.h | |
parent | 067d1fa9c0d887efb35b859230d743307f04fecd (diff) | |
download | CMake-6377efd154a385349f2e826c1388e1d768bfcbcb.zip CMake-6377efd154a385349f2e826c1388e1d768bfcbcb.tar.gz CMake-6377efd154a385349f2e826c1388e1d768bfcbcb.tar.bz2 |
cmCommand refactor: cmGetFilenameComponentCommand
Diffstat (limited to 'Source/cmGetFilenameComponentCommand.h')
-rw-r--r-- | Source/cmGetFilenameComponentCommand.h | 26 |
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 |