summaryrefslogtreecommitdiff
path: root/Config
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2017-01-16 18:32:34 -0500
committerGitHub <noreply@github.com>2017-01-16 18:32:34 -0500
commita96e40e24901a756b71e81f3e8fed83e9fdef1e4 (patch)
tree569229a04939fc5f2eeac85a09c26d53d04acc44 /Config
parent8656b65e392e8d26de218bf372da949c3a00d8d4 (diff)
parent6d29538346e2e083abfed266806a807e8afedd40 (diff)
Merge pull request #183 from SaberUK/2.0+cmake
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 1f36edc24..a41af1815 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