Explorar o código

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

Jim Miller %!s(int64=25) %!d(string=hai) anos
pai
achega
13b8be3fb7
Modificáronse 2 ficheiros con 8 adicións e 0 borrados
  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)
     {