mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user