Browse Source

only allow unique configurations

Bill Hoffman 23 years ago
parent
commit
9ed9bffa6f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Source/cmMSDotNETGenerator.cxx

+ 6 - 1
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
       {