diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-05-29 04:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-05-29 17:12:22 (GMT) |
commit | 1e805f53f5520d8b13d306331fe1f0b34b5d9d7d (patch) | |
tree | 904b39e963db393fa5f982c39639361693d26b6e /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | 1336d11d9ceabf070b75816b91c7ae9459f0817c (diff) | |
download | CMake-1e805f53f5520d8b13d306331fe1f0b34b5d9d7d.zip CMake-1e805f53f5520d8b13d306331fe1f0b34b5d9d7d.tar.gz CMake-1e805f53f5520d8b13d306331fe1f0b34b5d9d7d.tar.bz2 |
GetDefinition: avoid duplicate calls
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index f87eba7..b9f6f8c 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -1027,8 +1027,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement( gt->GetFullNameComponents(prefix, base, suffix, config); std::string dbg_suffix = ".dbg"; // TODO: Where to document? - if (mf->GetDefinition("CMAKE_DEBUG_SYMBOL_SUFFIX")) { - dbg_suffix = mf->GetDefinition("CMAKE_DEBUG_SYMBOL_SUFFIX"); + if (auto d = mf->GetDefinition("CMAKE_DEBUG_SYMBOL_SUFFIX")) { + dbg_suffix = d; } vars["TARGET_PDB"] = base + suffix + dbg_suffix; } |