mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 09:29:15 -05:00
Remove barely-used cmMakefile::AddCacheDefinition
The boolean overload of this method was used only to implement option(). We re-implement option() in terms of the main method and removes the now-unused signature. This removes some duplicate code that had already fallen behind on changes (it was not removing the local definition instead of setting it).
This commit is contained in:
@@ -69,9 +69,7 @@ bool cmOptionCommand
|
||||
{
|
||||
initialValue = args[2];
|
||||
}
|
||||
this->Makefile->AddCacheDefinition(args[0].c_str(),
|
||||
cmSystemTools::IsOn(initialValue.c_str()),
|
||||
args[1].c_str());
|
||||
|
||||
this->Makefile->AddCacheDefinition(args[0].c_str(), initialValue.c_str(),
|
||||
args[1].c_str(), cmCacheManager::BOOL);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user