Commit aa29bbc3 authored by Brad King's avatar Brad King
Browse files

ENH: Added RemoveDefinition method.

parent 24e05181
......@@ -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;
......
......@@ -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.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment