diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-29 00:00:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-28 13:12:16 (GMT) |
commit | 78357e98a4c306847ddc30d9d6db361b66baf31b (patch) | |
tree | 45cfe52a6cfbba527dd01bbf482aeadf8582f641 /Source/cmGlobalGenerator.cxx | |
parent | 261a2585d9df7113a5ba7c9beacb641754444523 (diff) | |
download | CMake-78357e98a4c306847ddc30d9d6db361b66baf31b.zip CMake-78357e98a4c306847ddc30d9d6db361b66baf31b.tar.gz CMake-78357e98a4c306847ddc30d9d6db361b66baf31b.tar.bz2 |
Avoid duplicate calls to GetDefinition
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index eff6665..ac7c236 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -401,15 +401,13 @@ bool cmGlobalGenerator::FindMakeProgram(cmMakefile* mf) "all generators must specify this->FindMakeProgramFile"); return false; } - if (!mf->GetDefinition("CMAKE_MAKE_PROGRAM") || - cmIsOff(mf->GetDefinition("CMAKE_MAKE_PROGRAM"))) { + if (cmIsOff(mf->GetDefinition("CMAKE_MAKE_PROGRAM"))) { std::string setMakeProgram = mf->GetModulesFile(this->FindMakeProgramFile); if (!setMakeProgram.empty()) { mf->ReadListFile(setMakeProgram); } } - if (!mf->GetDefinition("CMAKE_MAKE_PROGRAM") || - cmIsOff(mf->GetDefinition("CMAKE_MAKE_PROGRAM"))) { + if (cmIsOff(mf->GetDefinition("CMAKE_MAKE_PROGRAM"))) { std::ostringstream err; err << "CMake was unable to find a build program corresponding to \"" << this->GetName() << "\". CMAKE_MAKE_PROGRAM is not set. You " |