ENH: Added RemoveDefinition method.
This commit is contained in:
parent
24e0518122
commit
aa29bbc326
@ -586,6 +586,11 @@ void cmMakefile::AddCacheDefinition(const char* name, bool value, const char* do
|
|||||||
this->AddDefinition(name, value);
|
this->AddDefinition(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cmMakefile::RemoveDefinition(const char* name)
|
||||||
|
{
|
||||||
|
m_Definitions.erase(DefinitionMap::key_type(name));
|
||||||
|
}
|
||||||
|
|
||||||
void cmMakefile::SetProjectName(const char* p)
|
void cmMakefile::SetProjectName(const char* p)
|
||||||
{
|
{
|
||||||
m_ProjectName = p;
|
m_ProjectName = p;
|
||||||
|
@ -199,6 +199,12 @@ public:
|
|||||||
///! Add a definition to this makefile and the global cmake cache.
|
///! Add a definition to this makefile and the global cmake cache.
|
||||||
void AddCacheDefinition(const char* name, bool, const char* doc);
|
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.
|
* Specify the name of the project for this build.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user