summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 3afbf67..8636aa0 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1331,6 +1331,11 @@ void cmake::SetHomeOutputDirectory(const char* lib)
void cmake::SetGlobalGenerator(cmGlobalGenerator *gg)
{
+ if(!gg)
+ {
+ cmSystemTools::Error("Error SetGlobalGenerator called with null");
+ return;
+ }
// delete the old generator
if (this->GlobalGenerator)
{