summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-13 14:37:31 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-13 14:37:31 (GMT)
commitf95dceccb5ccb1ba3ce54173dc4a0b7fdc4144a3 (patch)
tree84645e243e5724b9f0af9c38eaf5bfd51fb2747e
parent9f66fe9a01451cb5a6e883b05dbc05d6c6c6f4f7 (diff)
parenta3deae71990e0fd6b495bb3e925755cdbcaf89eb (diff)
downloadCMake-f95dceccb5ccb1ba3ce54173dc4a0b7fdc4144a3.zip
CMake-f95dceccb5ccb1ba3ce54173dc4a0b7fdc4144a3.tar.gz
CMake-f95dceccb5ccb1ba3ce54173dc4a0b7fdc4144a3.tar.bz2
Merge branch 'bootstrap-twice-in-source' into release-3.9
Merge-request: !1258
-rwxr-xr-xbootstrap6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 84df54a..7674130 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}