Bläddra i källkod

BUG: Handle when initial cmake fails

Andy Cedilnik 21 år sedan
förälder
incheckning
6cb01848fb
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      bootstrap

+ 4 - 0
bootstrap

@@ -964,6 +964,10 @@ export MAKE
 
 # Run bootstrap CMake to configure real CMake
 "${cmake_bootstrap_dir}/cmake" "${cmake_source_dir}" "-C${cmake_bootstrap_dir}/InitialCacheFlags.cmake"
+RES=$?
+if [ "${RES}" -ne "0" ]; then
+  cmake_error 11 "Problem while running initial CMake"
+fi
 
 echo "---------------------------------------------"