summaryrefslogtreecommitdiff
path: root/Config
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-01-13 22:02:00 +0000
committerPeter Powell <petpow@saberuk.com>2017-01-13 22:02:00 +0000
commit6d29538346e2e083abfed266806a807e8afedd40 (patch)
treecd5d74482f56399d24e74ccf8aa8036b42a0cdcf /Config
parentbdf4650ff8e38ce79187de67189befd1900b3d7f (diff)
Don't give misleading instructions when running CMake fails.
Diffstat (limited to 'Config')
-rwxr-xr-xConfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/Config b/Config
index 13d345e57..1a20318ff 100755
--- a/Config
+++ b/Config
@@ -94,6 +94,10 @@ Run_Build_System () {
echo "cmake $GEN_TYPE $WITH_INST $WITH_RUN $WITH_PERM $BUILD_TYPE $PCH $EXTRA_INCLUDE $EXTRA_LIBS $EXTRA_CONFIG_ARGS $REAL_SOURCE_DIR"
cmake $GEN_TYPE $WITH_INST $WITH_RUN $WITH_PERM $BUILD_TYPE $PCH $EXTRA_INCLUDE $EXTRA_LIBS $EXTRA_CONFIG_ARGS $REAL_SOURCE_DIR
+ if [ $? -ne 0 ]; then
+ echo "You should fix these issues and then run ./Config -quick to rerun CMake."
+ exit 1
+ fi
echo ""
if [ "$SOURCE_DIR" = "." ] ; then