From 13b8be3fb7d0e9f868ec9c9a75d2aa5fe00a7985 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 6 Apr 2001 08:28:57 -0400 Subject: [PATCH] FIX: configurations list needed to be reset for each dsp file created --- Source/cmDSPMakefile.cxx | 4 ++++ Source/cmDSPWriter.cxx | 4 ++++ 2 files changed, 8 insertions(+) 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) {