瀏覽代碼

Merge branch 'bootstrap-twice-in-source' into release-3.9

Merge-request: !1258
Brad King 8 年之前
父節點
當前提交
f95dceccb5
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      bootstrap

+ 6 - 0
bootstrap

@@ -830,6 +830,12 @@ rm -f "${cmake_bootstrap_dir}/cmake_bootstrap.log"
 rm -f "${cmake_bootstrap_dir}/cmConfigure.h${_tmp}"
 rm -f "${cmake_bootstrap_dir}/cmVersionConfig.h${_tmp}"
 
+# If building in-source, remove any cmConfigure.h that may
+# have been created by a previous run of the bootstrap cmake.
+if [ -n "${cmake_in_source_build}" ]; then
+  rm -f "${cmake_source_dir}/Source/cmConfigure.h"
+fi
+
 # If exist compiler flags, set them
 cmake_c_flags=${CFLAGS}
 cmake_cxx_flags=${CXXFLAGS}