diff options
author | Brad King <brad.king@kitware.com> | 2017-09-13 14:37:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-13 14:37:31 (GMT) |
commit | f95dceccb5ccb1ba3ce54173dc4a0b7fdc4144a3 (patch) | |
tree | 84645e243e5724b9f0af9c38eaf5bfd51fb2747e | |
parent | 9f66fe9a01451cb5a6e883b05dbc05d6c6c6f4f7 (diff) | |
parent | a3deae71990e0fd6b495bb3e925755cdbcaf89eb (diff) | |
download | CMake-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-x | bootstrap | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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} |