From 9ed9bffa6f267ad1696ec217930de74640ff4e74 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 11 Jun 2002 14:25:11 -0400 Subject: [PATCH] only allow unique configurations --- Source/cmMSDotNETGenerator.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/cmMSDotNETGenerator.cxx b/Source/cmMSDotNETGenerator.cxx index ccf45eb20..0a5b605c1 100644 --- a/Source/cmMSDotNETGenerator.cxx +++ b/Source/cmMSDotNETGenerator.cxx @@ -55,7 +55,12 @@ void cmMSDotNETGenerator::GenerateMakefile() if(config == "Debug" || config == "Release" || config == "MinSizeRel" || config == "RelWithDebInfo") { - m_Configurations.push_back(config); + // only add unique configurations + if(std::find(m_Configurations.begin(), + m_Configurations.end(), config) == m_Configurations.end()) + { + m_Configurations.push_back(config); + } } else {