Commit b9beb660 authored by David Cole's avatar David Cole Committed by Kitware Robot

Merge topic 'bootstrap-msys-paths'

5cd879c4 bootstrap: Convert MSYS paths to Windows format (#13001)
parents 1073d505 5cd879c4
......@@ -127,10 +127,20 @@ fi
cmake_bootstrap_dir="${cmake_binary_dir}/Bootstrap${_cmk}"
# Helper function to fix windows paths.
cmake_fix_slashes ()
{
echo "$1" | sed 's/\\/\//g'
}
case "${cmake_system}" in
*MINGW*)
cmake_fix_slashes()
{
cmd //c echo "$(echo "$1" | sed 's/\\/\//g')" | sed 's/^"//;s/" *$//'
}
;;
*)
cmake_fix_slashes()
{
echo "$1" | sed 's/\\/\//g'
}
;;
esac
# Choose the default install prefix.
if ${cmake_system_mingw}; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment