diff options
author | Brad King <brad.king@kitware.com> | 2003-01-22 15:33:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-01-22 15:33:34 (GMT) |
commit | 486454ef781a441334e876eef0c5d058526e97d4 (patch) | |
tree | ab1a52166bbf41fddbb533497a7c44d1e917cfe5 /Source/cmake.cxx | |
parent | c7b5bb6d2c11aa18d35670eb6c737ac70646efe3 (diff) | |
download | CMake-486454ef781a441334e876eef0c5d058526e97d4.zip CMake-486454ef781a441334e876eef0c5d058526e97d4.tar.gz CMake-486454ef781a441334e876eef0c5d058526e97d4.tar.bz2 |
BUG: Fixed crash when CMAKE_ROOT cannot be found.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 0b3e7cb..aa5984b 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -924,7 +924,11 @@ int cmake::Run(const std::vector<std::string>& args) m_CMakeCommand = args[0]; // load the cache - this->LoadCache(); + if(this->LoadCache() < 0) + { + cmSystemTools::Error("Error executing cmake::LoadCache(). Aborting.\n"); + return -1; + } // Add any cache args this->SetCacheArgs(args); |