فهرست منبع

FIX: configurations list needed to be reset for each dsp file created

Jim Miller 25 سال پیش
والد
کامیت
13b8be3fb7
2فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 4 0
      Source/cmDSPMakefile.cxx
  2. 4 0
      Source/cmDSPWriter.cxx

+ 4 - 0
Source/cmDSPMakefile.cxx

@@ -376,6 +376,10 @@ void cmDSPMakefile::SetBuildType(BuildType b)
     {
     cmSystemTools::Error("Error Reading ", m_DSPHeaderTemplate.c_str());
     }
+
+  // reset m_Configurations
+  m_Configurations.erase(m_Configurations.begin(), m_Configurations.end());
+  // now add all the configurations possible
   char buffer[2048];
   while(fin)
     {

+ 4 - 0
Source/cmDSPWriter.cxx

@@ -376,6 +376,10 @@ void cmDSPMakefile::SetBuildType(BuildType b)
     {
     cmSystemTools::Error("Error Reading ", m_DSPHeaderTemplate.c_str());
     }
+
+  // reset m_Configurations
+  m_Configurations.erase(m_Configurations.begin(), m_Configurations.end());
+  // now add all the configurations possible
   char buffer[2048];
   while(fin)
     {