summaryrefslogtreecommitdiff
path: root/Source/cmIncludeGuardCommand.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-19 11:08:38 +0200
committerSebastian Holtermann <sebholt@xwmw.org>2019-07-24 11:11:25 +0200
commitf2ba968ef2a1c46e117dcd8eec34a55775f3d5f4 (patch)
tree8fe55d2760291f1ab684afbb052fcc8aee266872 /Source/cmIncludeGuardCommand.cxx
parent9b5cc4253135c7811936b05525e013e04a390d02 (diff)
downloadcmake-f2ba968ef2a1c46e117dcd8eec34a55775f3d5f4.tar.gz
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`
Diffstat (limited to 'Source/cmIncludeGuardCommand.cxx')
-rw-r--r--Source/cmIncludeGuardCommand.cxx2
1 files changed, 1 insertions, 1 deletions
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<std::string> const& args,
status.SetReturnInvoked();
return true;
}
- mf->AddDefinition(includeGuardVar, true);
+ mf->AddDefinitionBool(includeGuardVar, true);
break;
case DIRECTORY:
if (CheckIncludeGuardIsSet(mf, includeGuardVar)) {