Ver código fonte

Merge branch 'script-mode-keep-makeflags'

Brad King 15 anos atrás
pai
commit
71cefc35c0
1 arquivos alterados com 10 adições e 10 exclusões
  1. 10 10
      Source/cmake.cxx

+ 10 - 10
Source/cmake.cxx

@@ -162,16 +162,6 @@ cmake::cmake()
     }
     }
 #endif
 #endif
 
 
-  // If MAKEFLAGS are given in the environment, remove the environment
-  // variable.  This will prevent try-compile from succeeding when it
-  // should fail (if "-i" is an option).  We cannot simply test
-  // whether "-i" is given and remove it because some make programs
-  // encode the MAKEFLAGS variable in a strange way.
-  if(getenv("MAKEFLAGS"))
-    {
-    cmSystemTools::PutEnv("MAKEFLAGS=");
-    }
-
   this->Verbose = false;
   this->Verbose = false;
   this->InTryCompile = false;
   this->InTryCompile = false;
   this->CacheManager = new cmCacheManager(this);
   this->CacheManager = new cmCacheManager(this);
@@ -2231,6 +2221,16 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
       }
       }
     }
     }
 
 
+  // If MAKEFLAGS are given in the environment, remove the environment
+  // variable.  This will prevent try-compile from succeeding when it
+  // should fail (if "-i" is an option).  We cannot simply test
+  // whether "-i" is given and remove it because some make programs
+  // encode the MAKEFLAGS variable in a strange way.
+  if(getenv("MAKEFLAGS"))
+    {
+    cmSystemTools::PutEnv("MAKEFLAGS=");
+    }
+
   this->PreLoadCMakeFiles();
   this->PreLoadCMakeFiles();
 
 
   std::string systemFile = this->GetHomeOutputDirectory();
   std::string systemFile = this->GetHomeOutputDirectory();