diff options
author | Brad King <brad.king@kitware.com> | 2013-10-21 15:58:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-22 13:09:52 (GMT) |
commit | 3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c (patch) | |
tree | 2d0ca3ea70083bd9d7f19ffc4b2f246ad87ede17 /Source/cmVariableRequiresCommand.h | |
parent | 178b9af18674b23be97758236c676c9bd9398c40 (diff) | |
download | CMake-3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c.zip CMake-3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c.tar.gz CMake-3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c.tar.bz2 |
Add policy CMP0035 to disallow variable_requires
Diffstat (limited to 'Source/cmVariableRequiresCommand.h')
-rw-r--r-- | Source/cmVariableRequiresCommand.h | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/Source/cmVariableRequiresCommand.h b/Source/cmVariableRequiresCommand.h index 1032745..881b149 100644 --- a/Source/cmVariableRequiresCommand.h +++ b/Source/cmVariableRequiresCommand.h @@ -14,40 +14,15 @@ #include "cmCommand.h" -/** \class cmVariableRequiresCommand - * \brief Displays a message to the user - * - */ class cmVariableRequiresCommand : public cmCommand { public: - /** - * This is a virtual constructor for the command. - */ - virtual cmCommand* Clone() - { - return new cmVariableRequiresCommand; - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ + cmTypeMacro(cmVariableRequiresCommand, cmCommand); + virtual cmCommand* Clone() { return new cmVariableRequiresCommand; } virtual bool InitialPass(std::vector<std::string> const& args, cmExecutionStatus &status); - - /** - * The name of the command as specified in CMakeList.txt. - */ virtual const char* GetName() const { return "variable_requires";} - - /** This command is kept for compatibility with older CMake versions. */ - virtual bool IsDiscouraged() const - { - return true; - } - - cmTypeMacro(cmVariableRequiresCommand, cmCommand); + virtual bool IsDiscouraged() const { return true; } }; |