summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmDSPMakefile.cxx4
-rw-r--r--Source/cmDSPWriter.cxx4
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmDSPMakefile.cxx b/Source/cmDSPMakefile.cxx
index f55474b..ac0688e 100644
--- a/Source/cmDSPMakefile.cxx
+++ b/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)
{
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx
index f55474b..ac0688e 100644
--- a/Source/cmDSPWriter.cxx
+++ b/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)
{