소스 검색

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 "---------------------------------------------"