summaryrefslogtreecommitdiffstats
path: root/Source/cmMSProjectGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-30 19:28:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-30 19:28:55 (GMT)
commit4179c991f4bf3aefc1d96617e5f4e03646dcf56e (patch)
tree17edf2e2e3c400d6c01ca76d53c8f42c75be9f08 /Source/cmMSProjectGenerator.cxx
parentdbf65f216fd08ce12df51bae17d0382473ce1d7b (diff)
downloadCMake-4179c991f4bf3aefc1d96617e5f4e03646dcf56e.zip
CMake-4179c991f4bf3aefc1d96617e5f4e03646dcf56e.tar.gz
CMake-4179c991f4bf3aefc1d96617e5f4e03646dcf56e.tar.bz2
ENH: change MFC gui to use cmake class
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";