From 2e65fe92db4ec2869618e863f80f21c825ac9e1c Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 31 Oct 2022 11:59:20 -0400 Subject: cmLocalGenerator: Clarify name of local PDB type variable --- Source/cmLocalGenerator.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 33255c5..fc16b26 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2678,8 +2678,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target) bool editAndContinueDebugInfo = langFlags.find("/ZI") != std::string::npos || langFlags.find("-ZI") != std::string::npos; - - bool enableDebuggingInformation = + bool programDatabaseDebugInfo = langFlags.find("/Zi") != std::string::npos || langFlags.find("-Zi") != std::string::npos; @@ -2697,7 +2696,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target) if (editAndContinueDebugInfo || msvc2008OrLess) { this->CopyPchCompilePdb(config, target, *ReuseFrom, reuseTarget, { ".pdb", ".idb" }); - } else if (enableDebuggingInformation) { + } else if (programDatabaseDebugInfo) { this->CopyPchCompilePdb(config, target, *ReuseFrom, reuseTarget, { ".pdb" }); } -- cgit v0.12