summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-01-22 15:33:34 (GMT)
committerBrad King <brad.king@kitware.com>2003-01-22 15:33:34 (GMT)
commit486454ef781a441334e876eef0c5d058526e97d4 (patch)
treeab1a52166bbf41fddbb533497a7c44d1e917cfe5 /Source/cmake.cxx
parentc7b5bb6d2c11aa18d35670eb6c737ac70646efe3 (diff)
downloadCMake-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.cxx6
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);