summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-06-22 13:59:20 (GMT)
committerBrad King <brad.king@kitware.com>2010-06-22 13:59:20 (GMT)
commit71cefc35c0c1901a60a14ea8afde8935cdb87cd9 (patch)
tree3c7812334a90ec0a7cc08ef71b5451ffbf7114a5 /Source
parentd4206dc62b49ac45c3c2479340e71020a35c6cc1 (diff)
parent0a7c551bf61310859e47ebcce95e176a96db76bb (diff)
downloadCMake-71cefc35c0c1901a60a14ea8afde8935cdb87cd9.zip
CMake-71cefc35c0c1901a60a14ea8afde8935cdb87cd9.tar.gz
CMake-71cefc35c0c1901a60a14ea8afde8935cdb87cd9.tar.bz2
Merge branch 'script-mode-keep-makeflags'
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 3ec9921..cb20069 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -162,16 +162,6 @@ cmake::cmake()
}
#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->InTryCompile = false;
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();
std::string systemFile = this->GetHomeOutputDirectory();