From f2ba968ef2a1c46e117dcd8eec34a55775f3d5f4 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Fri, 19 Jul 2019 11:08:38 +0200 Subject: 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` --- Source/cmIncludeGuardCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/cmIncludeGuardCommand.cxx') diff --git a/Source/cmIncludeGuardCommand.cxx b/Source/cmIncludeGuardCommand.cxx index 505b07cad7..3b126b0c4a 100644 --- a/Source/cmIncludeGuardCommand.cxx +++ b/Source/cmIncludeGuardCommand.cxx @@ -85,7 +85,7 @@ bool cmIncludeGuardCommand::InitialPass(std::vector const& args, status.SetReturnInvoked(); return true; } - mf->AddDefinition(includeGuardVar, true); + mf->AddDefinitionBool(includeGuardVar, true); break; case DIRECTORY: if (CheckIncludeGuardIsSet(mf, includeGuardVar)) { -- cgit v1.2.1