Explorar o código

BUG: Handle when initial cmake fails

Andy Cedilnik %!s(int64=21) %!d(string=hai) anos
pai
achega
6cb01848fb
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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 "---------------------------------------------"