STYLE: Fix typo in GetFilenameLastExtension docs
[cmake.git] / Source / cmRemoveCommand.h
blobe5972d96e9895884d2535748bc92aaae2c7eeee6
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmRemoveCommand.h,v $
5 Language: C++
6 Date: $Date: 2008-01-23 15:27:59 $
7 Version: $Revision: 1.11 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmRemoveCommand_h
18 #define cmRemoveCommand_h
20 #include "cmCommand.h"
22 /** \class cmRemoveCommand
23 * \brief Set a CMAKE variable
25 * cmRemoveCommand sets a variable to a value with expansion.
27 class cmRemoveCommand : public cmCommand
29 public:
30 /**
31 * This is a virtual constructor for the command.
33 virtual cmCommand* Clone()
35 return new cmRemoveCommand;
38 /**
39 * This is called when the command is first encountered in
40 * the CMakeLists.txt file.
42 virtual bool InitialPass(std::vector<std::string> const& args,
43 cmExecutionStatus &status);
45 /**
46 * This determines if the command is invoked when in script mode.
48 virtual bool IsScriptable() { return true; }
50 /**
51 * The name of the command as specified in CMakeList.txt.
53 virtual const char* GetName() {return "remove";}
55 /**
56 * Succinct documentation.
58 virtual const char* GetTerseDocumentation()
60 return "Deprecated. Use the list(REMOVE_ITEM ) command instead.";
63 /**
64 * More documentation.
66 virtual const char* GetFullDocumentation()
68 return
69 " remove(VAR VALUE VALUE ...)\n"
70 "Removes VALUE from the variable VAR. "
71 "This is typically used to remove entries from a vector "
72 "(e.g. semicolon separated list). VALUE is expanded.";
75 /** This command is kept for compatibility with older CMake versions. */
76 virtual bool IsDiscouraged()
78 return true;
81 cmTypeMacro(cmRemoveCommand, cmCommand);
86 #endif