2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2008-08-25 14:31:29 +00:00
|
|
|
#ifndef cmUnsetCommand_h
|
|
|
|
#define cmUnsetCommand_h
|
|
|
|
|
2017-08-25 18:39:02 +00:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2017-04-11 19:42:35 +00:00
|
|
|
|
2016-10-25 18:35:04 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2008-08-25 14:31:29 +00:00
|
|
|
#include "cmCommand.h"
|
|
|
|
|
2016-10-25 18:35:04 +00:00
|
|
|
class cmExecutionStatus;
|
|
|
|
|
2008-08-25 14:31:29 +00:00
|
|
|
/** \class cmUnsetCommand
|
|
|
|
* \brief Unset a CMAKE variable
|
|
|
|
*
|
|
|
|
* cmUnsetCommand unsets or removes a variable.
|
|
|
|
*/
|
|
|
|
class cmUnsetCommand : public cmCommand
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2017-09-15 13:56:26 +00:00
|
|
|
cmCommand* Clone() override { return new cmUnsetCommand; }
|
2008-08-25 14:31:29 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the CMakeLists.txt file.
|
|
|
|
*/
|
2016-06-27 19:25:27 +00:00
|
|
|
bool InitialPass(std::vector<std::string> const& args,
|
2017-09-15 13:56:26 +00:00
|
|
|
cmExecutionStatus& status) override;
|
2008-08-25 14:31:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|