ENH: Added RemoveDefinition method.

This commit is contained in:
Brad King 2002-09-18 10:39:41 -04:00
parent 24e0518122
commit aa29bbc326
2 changed files with 11 additions and 0 deletions

View File

@ -586,6 +586,11 @@ void cmMakefile::AddCacheDefinition(const char* name, bool value, const char* do
this->AddDefinition(name, value);
}
void cmMakefile::RemoveDefinition(const char* name)
{
m_Definitions.erase(DefinitionMap::key_type(name));
}
void cmMakefile::SetProjectName(const char* p)
{
m_ProjectName = p;

View File

@ -199,6 +199,12 @@ public:
///! Add a definition to this makefile and the global cmake cache.
void AddCacheDefinition(const char* name, bool, const char* doc);
/**
* Remove a variable definition from the build. This is not valid
* for cache entries, and will only affect the current makefile.
*/
void RemoveDefinition(const char* name);
/**
* Specify the name of the project for this build.
*/