diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-19 09:08:38 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-24 09:11:25 (GMT) |
commit | f2ba968ef2a1c46e117dcd8eec34a55775f3d5f4 (patch) | |
tree | 8fe55d2760291f1ab684afbb052fcc8aee266872 /Source/cmVariableRequiresCommand.cxx | |
parent | 9b5cc4253135c7811936b05525e013e04a390d02 (diff) | |
download | CMake-f2ba968ef2a1c46e117dcd8eec34a55775f3d5f4.zip CMake-f2ba968ef2a1c46e117dcd8eec34a55775f3d5f4.tar.gz CMake-f2ba968ef2a1c46e117dcd8eec34a55775f3d5f4.tar.bz2 |
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/cmVariableRequiresCommand.cxx')
-rw-r--r-- | Source/cmVariableRequiresCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVariableRequiresCommand.cxx b/Source/cmVariableRequiresCommand.cxx index c02157a..9878ff1 100644 --- a/Source/cmVariableRequiresCommand.cxx +++ b/Source/cmVariableRequiresCommand.cxx @@ -42,7 +42,7 @@ bool cmVariableRequiresCommand::InitialPass( // if reqVar is set to true, but requirementsMet is false , then // set reqVar to false. if (!reqVar || (!requirementsMet && this->Makefile->IsOn(reqVar))) { - this->Makefile->AddDefinition(resultVariable, requirementsMet); + this->Makefile->AddDefinitionBool(resultVariable, requirementsMet); } if (!requirementsMet) { |