cmCommand refactor: cmSetCommand

This commit is contained in:
Gabor Bencze
2019-08-04 19:08:05 +02:00
committed by Brad King
parent 2a9299782e
commit b3aa789630
3 changed files with 18 additions and 39 deletions

View File

@@ -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