summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-25 16:44:58 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-29 14:43:33 (GMT)
commitfb9355c50e366bd0f7cb6df6ea19118bd7dae899 (patch)
tree2618720e2dd282475474e3d210b6cede12ecefa3 /Source/cmake.cxx
parent29e8b7bfcc8b3530fb4fd2dd04dca59744588b61 (diff)
downloadCMake-fb9355c50e366bd0f7cb6df6ea19118bd7dae899.zip
CMake-fb9355c50e366bd0f7cb6df6ea19118bd7dae899.tar.gz
CMake-fb9355c50e366bd0f7cb6df6ea19118bd7dae899.tar.bz2
cmGlobalGenerator: Return from Compute whether to generate.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 619374e..ec8276e 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1607,7 +1607,10 @@ int cmake::Generate()
{
return -1;
}
- this->GlobalGenerator->Compute();
+ if (!this->GlobalGenerator->Compute())
+ {
+ return -1;
+ }
this->GlobalGenerator->Generate();
if ( !this->GraphVizFile.empty() )
{