diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-08-04 17:08:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:20 (GMT) |
commit | b3aa789630c6411300080ec05d58e6cd9dcb7a2b (patch) | |
tree | 729ce3c5cc977ac1c50066e7a5e2e0be7e721571 /Source/cmSetCommand.h | |
parent | 2a9299782ece0e2c5f990fcab2162d141aedb833 (diff) | |
download | CMake-b3aa789630c6411300080ec05d58e6cd9dcb7a2b.zip CMake-b3aa789630c6411300080ec05d58e6cd9dcb7a2b.tar.gz CMake-b3aa789630c6411300080ec05d58e6cd9dcb7a2b.tar.bz2 |
cmCommand refactor: cmSetCommand
Diffstat (limited to 'Source/cmSetCommand.h')
-rw-r--r-- | Source/cmSetCommand.h | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmSetCommand.h b/Source/cmSetCommand.h index 1c5a435..0973d33 100644 --- a/Source/cmSetCommand.h +++ b/Source/cmSetCommand.h @@ -8,34 +8,14 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; -/** \class cmSetCommand +/** * \brief Set a CMAKE variable * * cmSetCommand sets a variable to a value with expansion. */ -class cmSetCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmSetCommand>(); - } - - /** - * 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 cmSetCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |