1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
8 This software is distributed WITHOUT ANY WARRANTY; without even the
9 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License for more information.
11 ============================================================================*/
12 #ifndef cmRemoveDefinitionsCommand_h
13 #define cmRemoveDefinitionsCommand_h
15 #include "cmCommand.h"
17 /** \class cmRemoveDefinitionsCommand
18 * \brief Specify a list of compiler defines
20 * cmRemoveDefinitionsCommand specifies a list of compiler defines.
22 * be removed from the compile command.
24 class cmRemoveDefinitionsCommand : public cmCommand
28 * This is a virtual constructor for the command.
30 virtual cmCommand* Clone()
32 return new cmRemoveDefinitionsCommand;
36 * This is called when the command is first encountered in
37 * the CMakeLists.txt file.
39 virtual bool InitialPass(std::vector<std::string> const& args,
40 cmExecutionStatus &status);
43 * The name of the command as specified in CMakeList.txt.
45 virtual const char* GetName() const {return "remove_definitions";}
48 * Succinct documentation.
50 virtual const char* GetTerseDocumentation() const
52 return "Removes -D define flags added by add_definitions.";
58 virtual const char* GetFullDocumentation() const
61 " remove_definitions(-DFOO -DBAR ...)\n"
62 "Removes flags (added by add_definitions) from the compiler command "
63 "line for sources in the current directory and below.";
66 cmTypeMacro(cmRemoveDefinitionsCommand, cmCommand);