瀏覽代碼

cmLocalGenerator: Clarify name of local PDB type variable

Brad King 3 年之前
父節點
當前提交
2e65fe92db
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Source/cmLocalGenerator.cxx

+ 2 - 3
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" });
                 }