summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-10 16:19:19 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-10 16:19:19 (GMT)
commit62ca4d34c24a94884924ccf261fd5906d9f99f93 (patch)
tree29e6f4303c4254af1479b757d868108e4dd6fbb9
parentaacd51034afef7918ceae38493b979e4010fa9c1 (diff)
downloadCMake-62ca4d34c24a94884924ccf261fd5906d9f99f93.zip
CMake-62ca4d34c24a94884924ccf261fd5906d9f99f93.tar.gz
CMake-62ca4d34c24a94884924ccf261fd5906d9f99f93.tar.bz2
BUG: Fixed bootstrap from MSYS prompt. It was working only when the bootstrap directory in MSYS mapped to the same directory on windows except for the drive letter in front. Now it should work from any path.
-rwxr-xr-xbootstrap10
1 files changed, 9 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 4d287a4..e76bbaa 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1041,13 +1041,21 @@ else
echo "${cmake_cxx_compiler} does not have ANSI for scoping"
fi
+# When bootstrapping on MinGW with MSYS we must convert the source
+# directory to a windows path.
+if ${cmake_system_mingw}; then
+ cmake_root_dir=`cd "${cmake_source_dir}"; pwd -W`
+else
+ cmake_root_dir="${cmake_source_dir}"
+fi
+
# Write CMake version
for a in MAJOR MINOR PATCH; do
CMake_VERSION=`cat "${cmake_source_dir}/CMakeLists.txt" | \
grep "SET(CMake_VERSION_${a} *[0-9]*)" | sed "s/SET(CMake_VERSION_${a} *\([0-9]*\))/\1/"`
cmake_report cmConfigure.h.tmp "#define CMake_VERSION_${a} ${CMake_VERSION}"
done
-cmake_report cmConfigure.h.tmp "#define CMAKE_ROOT_DIR \"${cmake_source_dir}\""
+cmake_report cmConfigure.h.tmp "#define CMAKE_ROOT_DIR \"${cmake_root_dir}\""
cmake_report cmConfigure.h.tmp "#define CMAKE_DATA_DIR \"${cmake_data_dir}\""
cmake_report cmConfigure.h.tmp "#define CMAKE_BOOTSTRAP"