summaryrefslogtreecommitdiffstats
path: root/Source/cmBuildNameCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-23 12:19:57 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-23 12:19:57 (GMT)
commit8855bf53959331a290fe8947eb23afd719a52cf4 (patch)
tree66b34b980fbceb5616d6c3f26056d153d7da4ba0 /Source/cmBuildNameCommand.h
parent078530b4481e0f311e9180bf02cded228809076d (diff)
parent6c9194488aa5d61774ffeb40f54149ce2255f00c (diff)
downloadCMake-8855bf53959331a290fe8947eb23afd719a52cf4.zip
CMake-8855bf53959331a290fe8947eb23afd719a52cf4.tar.gz
CMake-8855bf53959331a290fe8947eb23afd719a52cf4.tar.bz2
Merge topic 'remove-old-commands-by-policy'
6c91944 Add policy CMP0036 to disallow build_name 3969bb2 Add policy CMP0035 to disallow variable_requires 178b9af Add policy CMP0034 to disallow utility_source 248d1dc Add policy CMP0033 to disallow export_library_dependencies 6865c8f Add policy CMP0032 to disallow output_required_files aa76518 Add policy CMP0031 to disallow load_command 97268cf Add policy CMP0030 to disallow use_mangled_mesa 9f64fbf Add policy CMP0029 to disallow subdir_depends 882c0f0 Add infrastructure for policies that disallow commands
Diffstat (limited to 'Source/cmBuildNameCommand.h')
-rw-r--r--Source/cmBuildNameCommand.h38
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; }
};