summaryrefslogtreecommitdiffstats
path: root/Source/cmLoadCommandCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-18 16:41:54 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-22 13:09:52 (GMT)
commitaa76518f8bfd821f000d1779066eb7614cdd079b (patch)
tree4005fa79df546cbf0de9bfb2f0610b27a9b65c3d /Source/cmLoadCommandCommand.h
parent97268cf5b7626febb06d04c2201ace397a4863fd (diff)
downloadCMake-aa76518f8bfd821f000d1779066eb7614cdd079b.zip
CMake-aa76518f8bfd821f000d1779066eb7614cdd079b.tar.gz
CMake-aa76518f8bfd821f000d1779066eb7614cdd079b.tar.bz2
Add policy CMP0031 to disallow load_command
Diffstat (limited to 'Source/cmLoadCommandCommand.h')
-rw-r--r--Source/cmLoadCommandCommand.h24
1 files changed, 2 insertions, 22 deletions
diff --git a/Source/cmLoadCommandCommand.h b/Source/cmLoadCommandCommand.h
index 918f32b..11bcf09 100644
--- a/Source/cmLoadCommandCommand.h
+++ b/Source/cmLoadCommandCommand.h
@@ -14,34 +14,14 @@
#include "cmCommand.h"
-/** \class cmLoadCommandCommand
- * \brief Load in a Command plugin
- *
- * cmLoadCommandCommand loads a command into CMake
- */
class cmLoadCommandCommand : public cmCommand
{
public:
- /**
- * This is a virtual constructor for the command.
- */
- virtual cmCommand* Clone()
- {
- return new cmLoadCommandCommand;
- }
-
- /**
- * This is called when the command is first encountered in
- * the CMakeLists.txt file.
- */
+ virtual cmCommand* Clone() { return new cmLoadCommandCommand; }
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 "load_command";}
-
+ virtual bool IsDiscouraged() const { return true; }
cmTypeMacro(cmLoadCommandCommand, cmCommand);
};