summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-19 09:08:38 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-07-24 09:11:25 (GMT)
commitf2ba968ef2a1c46e117dcd8eec34a55775f3d5f4 (patch)
tree8fe55d2760291f1ab684afbb052fcc8aee266872 /Source/cmGlobalGenerator.cxx
parent9b5cc4253135c7811936b05525e013e04a390d02 (diff)
downloadCMake-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/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index ec4107b..baa8559 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -511,7 +511,7 @@ void cmGlobalGenerator::EnableLanguage(
bool fatalError = false;
- mf->AddDefinition("RUN_CONFIGURE", true);
+ mf->AddDefinitionBool("RUN_CONFIGURE", true);
std::string rootBin = this->CMakeInstance->GetHomeOutputDirectory();
rootBin += "/CMakeFiles";