ENH: fix relwithdebinfo

This commit is contained in:
Bill Hoffman 2002-04-30 15:33:05 -04:00
parent 6cc58e5f9b
commit 8a144d0c40
1 changed files with 4 additions and 2 deletions

View File

@ -836,7 +836,8 @@ void cmMSDotNETGenerator::OutputBuildTool(std::ostream& fout,
this->OutputModuleDefinitionFile(fout, target);
fout << "\t\t\t\tProgramDatabaseFile=\"" << m_LibraryOutputPath
<< "$(OutDir)\\" << libName << ".pdb\"\n";
if(strcmp(configName, "Debug") == 0)
if(strcmp(configName, "Debug") == 0
|| strcmp(configName, "RelWithDebInfo") == 0)
{
fout << "\t\t\t\tGenerateDebugInformation=\"TRUE\"\n";
}
@ -864,7 +865,8 @@ void cmMSDotNETGenerator::OutputBuildTool(std::ostream& fout,
fout << "\"\n";
fout << "\t\t\t\tProgramDatabaseFile=\"" << m_LibraryOutputPath
<< "$(OutDir)\\" << libName << ".pdb\"\n";
if(strcmp(configName, "Debug") == 0)
if(strcmp(configName, "Debug") == 0
|| strcmp(configName, "RelWithDebInfo") == 0)
{
fout << "\t\t\t\tGenerateDebugInformation=\"TRUE\"\n";
}