mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 20:21:41 -06:00
cmVisualStudioGeneratorOptions: Rename {IsDebug => UsingDebugInfo}
The latter name is more precise.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
|
||||
void FixManifestUACFlags();
|
||||
|
||||
bool IsDebug() const;
|
||||
bool UsingDebugInfo() const;
|
||||
bool IsWinRt() const;
|
||||
bool IsManaged() const;
|
||||
// Write options to output.
|
||||
|
||||
Reference in New Issue
Block a user