summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-06-11 18:25:11 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-06-11 18:25:11 (GMT)
commit9ed9bffa6f267ad1696ec217930de74640ff4e74 (patch)
treed08e87f0ec1b0cc4960812e1252085b0b291b7e9 /Source
parent5484a691effbc1aa5ceee616d9599a59af5a7b2a (diff)
downloadCMake-9ed9bffa6f267ad1696ec217930de74640ff4e74.zip
CMake-9ed9bffa6f267ad1696ec217930de74640ff4e74.tar.gz
CMake-9ed9bffa6f267ad1696ec217930de74640ff4e74.tar.bz2
only allow unique configurations
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMSDotNETGenerator.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmMSDotNETGenerator.cxx b/Source/cmMSDotNETGenerator.cxx
index ccf45eb..0a5b605 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
{