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/CTest | |
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/CTest')
-rw-r--r-- | Source/CTest/cmCTestScriptHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx index 85040dd..fc319b3 100644 --- a/Source/CTest/cmCTestScriptHandler.cxx +++ b/Source/CTest/cmCTestScriptHandler.cxx @@ -360,7 +360,7 @@ int cmCTestScriptHandler::ReadInScript(const std::string& total_script_arg) cmSystemTools::GetCTestCommand().c_str()); this->Makefile->AddDefinition("CMAKE_EXECUTABLE_NAME", cmSystemTools::GetCMakeCommand().c_str()); - this->Makefile->AddDefinition("CTEST_RUN_CURRENT_SCRIPT", true); + this->Makefile->AddDefinitionBool("CTEST_RUN_CURRENT_SCRIPT", true); this->SetRunCurrentScript(true); this->UpdateElapsedTime(); |