瀏覽代碼

ENH: fix relwithdebinfo

Bill Hoffman 23 年之前
父節點
當前提交
8a144d0c40
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      Source/cmMSDotNETGenerator.cxx

+ 4 - 2
Source/cmMSDotNETGenerator.cxx

@@ -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";
         }