summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-14 11:37:30 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-14 11:37:58 (GMT)
commit5202075c66c242e00fc0da118b63428009d1947e (patch)
tree12b8a5bf36338eaf5b10a1b92c2076ca513f3262
parent208ac575312717223bfc61f57072ff61db790b86 (diff)
parenta3deae71990e0fd6b495bb3e925755cdbcaf89eb (diff)
downloadCMake-5202075c66c242e00fc0da118b63428009d1947e.zip
CMake-5202075c66c242e00fc0da118b63428009d1947e.tar.gz
CMake-5202075c66c242e00fc0da118b63428009d1947e.tar.bz2
Merge topic 'bootstrap-twice-in-source'
a3deae71 bootstrap: Fix running multiple times in-source Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1258
-rwxr-xr-xbootstrap6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 430f53b..5afc43b 100755
--- a/bootstrap
+++ b/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}