|
|
@@ -1720,23 +1720,6 @@ void cmMakefile::AddDefinition(const char* name, bool value)
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-void cmMakefile::AddCacheDefinition(const char* name,
|
|
|
- bool value,
|
|
|
- const char* doc)
|
|
|
-{
|
|
|
- bool val = value;
|
|
|
- cmCacheManager::CacheIterator it =
|
|
|
- this->GetCacheManager()->GetCacheIterator(name);
|
|
|
- if(!it.IsAtEnd() && (it.GetType() == cmCacheManager::UNINITIALIZED) &&
|
|
|
- it.Initialized())
|
|
|
- {
|
|
|
- val = it.GetValueAsBool();
|
|
|
- }
|
|
|
- this->GetCacheManager()->AddCacheEntry(name, val, doc);
|
|
|
- this->AddDefinition(name, val);
|
|
|
-}
|
|
|
-
|
|
|
void cmMakefile::RemoveDefinition(const char* name)
|
|
|
{
|
|
|
this->Internal->VarStack.top().Set(name, 0);
|