cmMakefile: Simplify and rename AddDefinitionBool

This simplifies the `cmMakefile::AddDefinition` method with bool value
overload to call the string based `cmMakefile::AddDefinition` method
with either an "ON" or "OFF" string.
Also the method is renamed to `cmMakefile::AddDefinitionBool`
This commit is contained in:
Sebastian Holtermann
2019-07-19 11:08:38 +02:00
parent 9b5cc42531
commit f2ba968ef2
6 changed files with 13 additions and 26 deletions

View File

@@ -85,7 +85,7 @@ bool cmIncludeGuardCommand::InitialPass(std::vector<std::string> const& args,
status.SetReturnInvoked();
return true;
}
mf->AddDefinition(includeGuardVar, true);
mf->AddDefinitionBool(includeGuardVar, true);
break;
case DIRECTORY:
if (CheckIncludeGuardIsSet(mf, includeGuardVar)) {