summaryrefslogtreecommitdiffstats
path: root/Source/cmMSProjectGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMSProjectGenerator.cxx')
-rw-r--r--Source/cmMSProjectGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmMSProjectGenerator.cxx b/Source/cmMSProjectGenerator.cxx
index ee71f8d..12e2733 100644
--- a/Source/cmMSProjectGenerator.cxx
+++ b/Source/cmMSProjectGenerator.cxx
@@ -78,6 +78,12 @@ void cmMSProjectGenerator::SetLocal(bool local)
void cmMSProjectGenerator::ComputeSystemInfo()
{
// now load the settings
+ if(!cmCacheManager::GetInstance()->GetCacheValue("CMAKE_ROOT"))
+ {
+ cmSystemTools::Error(
+ "CMAKE_ROOT has not been defined, bad GUI or driver program");
+ return;
+ }
std::string fpath =
cmCacheManager::GetInstance()->GetCacheValue("CMAKE_ROOT");
fpath += "/Templates/CMakeWindowsSystemConfig.cmake";