From f4980321417989341461250ac2fd51592b0f613c Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 13 Feb 2024 15:11:36 -0500 Subject: cmVisualStudioGeneratorOptions: Rename {IsDebug => UsingDebugInfo} The latter name is more precise. --- Source/cmLocalVisualStudio7Generator.cxx | 4 ++-- Source/cmVisualStudio10TargetGenerator.cxx | 4 ++-- Source/cmVisualStudioGeneratorOptions.cxx | 2 +- Source/cmVisualStudioGeneratorOptions.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index d315f0f..12ca528 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -1135,7 +1135,7 @@ void cmLocalVisualStudio7Generator::OutputBuildTool( cmStrCat(target->GetPDBDirectory(configName), '/', targetNames.PDB); fout << "\t\t\t\tProgramDatabaseFile=\"" << this->ConvertToXMLOutputPathSingle(temp) << "\"\n"; - if (targetOptions.IsDebug()) { + if (targetOptions.UsingDebugInfo()) { fout << "\t\t\t\tGenerateDebugInformation=\"true\"\n"; } if (this->WindowsCEProject) { @@ -1223,7 +1223,7 @@ void cmLocalVisualStudio7Generator::OutputBuildTool( target->GetPDBDirectory(configName)); fout << "\t\t\t\tProgramDatabaseFile=\"" << path << "/" << targetNames.PDB << "\"\n"; - if (targetOptions.IsDebug()) { + if (targetOptions.UsingDebugInfo()) { fout << "\t\t\t\tGenerateDebugInformation=\"true\"\n"; } if (this->WindowsCEProject) { diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 38a2ed8..ab7da1a 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1577,7 +1577,7 @@ void cmVisualStudio10TargetGenerator::WriteMSToolConfigurationValuesManaged( Options& o = *(this->ClOptions[config]); - if (o.IsDebug()) { + if (o.UsingDebugInfo()) { e1.Element("DebugSymbols", "true"); e1.Element("DefineDebug", "true"); } @@ -3581,7 +3581,7 @@ void cmVisualStudio10TargetGenerator::WriteClOptions( // without value so PDBs don't get generated uselessly. Each tag // goes on its own line because Visual Studio corrects it this // way when saving the project after CMake generates it. - if (!clOptions.IsDebug()) { + if (!clOptions.UsingDebugInfo()) { Elem e3(e2, "DebugInformationFormat"); e3.SetHasElements(); } diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx index 9dd2e6c..8b803a9 100644 --- a/Source/cmVisualStudioGeneratorOptions.cxx +++ b/Source/cmVisualStudioGeneratorOptions.cxx @@ -110,7 +110,7 @@ void cmVisualStudioGeneratorOptions::SetVerboseMakefile(bool verbose) } } -bool cmVisualStudioGeneratorOptions::IsDebug() const +bool cmVisualStudioGeneratorOptions::UsingDebugInfo() const { if (this->CurrentTool != CSharpCompiler) { return this->FlagMap.find("DebugInformationFormat") != this->FlagMap.end(); diff --git a/Source/cmVisualStudioGeneratorOptions.h b/Source/cmVisualStudioGeneratorOptions.h index 20e2d22..d045929 100644 --- a/Source/cmVisualStudioGeneratorOptions.h +++ b/Source/cmVisualStudioGeneratorOptions.h @@ -65,7 +65,7 @@ public: void FixManifestUACFlags(); - bool IsDebug() const; + bool UsingDebugInfo() const; bool IsWinRt() const; bool IsManaged() const; // Write options to output. -- cgit v0.12