diff -ru Source_old/cmake.cxx Source/cmake.cxx
--- Source_old/cmake.cxx	2012-04-18 14:10:54 -0400
+++ Source/cmake.cxx	2012-06-29 13:19:44 -0400
@@ -2174,6 +2174,14 @@
       }
     else
       {
+        const char* genName = cmSystemTools::GetEnv("CMAKE_DEFAULT_GENERATOR");
+        if (genName && *genName)
+          {
+          this->SetGlobalGenerator(this->CreateGlobalGenerator(genName));
+          }
+      }
+    if(!this->GlobalGenerator)
+      {
 #if defined(__BORLANDC__) && defined(_WIN32)
       this->SetGlobalGenerator(new cmGlobalBorlandMakefileGenerator);
 #elif defined(_WIN32) && !defined(__CYGWIN__) && !defined(CMAKE_BOOT_MINGW)
