diff options
-rw-r--r-- | Source/cmMakefile.cxx | 5 | ||||
-rw-r--r-- | Source/cmMakefile.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index f1d706e..ec8871b 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -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; diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index ae5704c..c14a4e3 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -200,6 +200,12 @@ public: 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. */ void SetProjectName(const char*); |