diff options
author | Brad King <brad.king@kitware.com> | 2013-10-21 17:12:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-22 13:09:53 (GMT) |
commit | 6c9194488aa5d61774ffeb40f54149ce2255f00c (patch) | |
tree | fc1200e03d64e3a83893de34814d3c244cfb6d54 /Source/cmBuildNameCommand.h | |
parent | 3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c (diff) | |
download | CMake-6c9194488aa5d61774ffeb40f54149ce2255f00c.zip CMake-6c9194488aa5d61774ffeb40f54149ce2255f00c.tar.gz CMake-6c9194488aa5d61774ffeb40f54149ce2255f00c.tar.bz2 |
Add policy CMP0036 to disallow build_name
Diffstat (limited to 'Source/cmBuildNameCommand.h')
-rw-r--r-- | Source/cmBuildNameCommand.h | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/Source/cmBuildNameCommand.h b/Source/cmBuildNameCommand.h index faeb3c0..2f7acde 100644 --- a/Source/cmBuildNameCommand.h +++ b/Source/cmBuildNameCommand.h @@ -14,46 +14,16 @@ #include "cmCommand.h" -/** \class cmBuildNameCommand - * \brief build_name command - * - * cmBuildNameCommand implements the build_name CMake command - */ class cmBuildNameCommand : public cmCommand { public: - /** - * This is a virtual constructor for the command. - */ - virtual cmCommand* Clone() - { - return new cmBuildNameCommand; - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ + cmTypeMacro(cmBuildNameCommand, cmCommand); + virtual cmCommand* Clone() { return new cmBuildNameCommand; } virtual bool InitialPass(std::vector<std::string> const& args, cmExecutionStatus &status); - - /** - * This determines if the command is invoked when in script mode. - */ - virtual bool IsScriptable() const { return true; } - - /** - * The name of the command as specified in CMakeList.txt. - */ virtual const char* GetName() const {return "build_name";} - - /** This command is kept for compatibility with older CMake versions. */ - virtual bool IsDiscouraged() const - { - return true; - } - - cmTypeMacro(cmBuildNameCommand, cmCommand); + virtual bool IsScriptable() const { return true; } + virtual bool IsDiscouraged() const { return true; } }; |