diff --git a/Source/cmDSPMakefile.cxx b/Source/cmDSPMakefile.cxx index f55474b70..ac0688e53 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 f55474b70..ac0688e53 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) {