浏览代码

BUG: Handle when initial cmake fails

Andy Cedilnik 21 年之前
父节点
当前提交
6cb01848fb
共有 1 个文件被更改,包括 4 次插入0 次删除
  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 "---------------------------------------------"