diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2021-05-11 15:20:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2021-05-11 15:20:04 (GMT) |
commit | 5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf (patch) | |
tree | 440ad6c931ede616674c1616cb328efc0ad80cf0 /Source/cmDepends.cxx | |
parent | ee87e53d3732a6482841c01c16e89f2822137d0e (diff) | |
download | CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.zip CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.gz CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.bz2 |
Source: Minor code improvements
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r-- | Source/cmDepends.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx index 566c3bf..46c7e3e 100644 --- a/Source/cmDepends.cxx +++ b/Source/cmDepends.cxx @@ -229,11 +229,10 @@ bool cmDepends::CheckDependencies(std::istream& internalDepends, void cmDepends::SetIncludePathFromLanguage(const std::string& lang) { // Look for the new per "TARGET_" variant first: - cmProp includePath = nullptr; std::string includePathVar = cmStrCat("CMAKE_", lang, "_TARGET_INCLUDE_PATH"); cmMakefile* mf = this->LocalGenerator->GetMakefile(); - includePath = mf->GetDefinition(includePathVar); + cmProp includePath = mf->GetDefinition(includePathVar); if (includePath) { cmExpandList(*includePath, this->IncludePath); } else { |