diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index d315f0fc7e..12ca528fc7 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 38a2ed85cc..ab7da1a046 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 9dd2e6c55f..8b803a9809 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 20e2d22070..d0459292f9 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.