Merge topic 'bootstrap-msys-paths'

5cd879c bootstrap: Convert MSYS paths to Windows format (#13001)
This commit is contained in:
David Cole 2012-03-02 11:49:50 -05:00 committed by CMake Topic Stage
commit b9beb660ea
1 changed files with 14 additions and 4 deletions

View File

@ -127,10 +127,20 @@ fi
cmake_bootstrap_dir="${cmake_binary_dir}/Bootstrap${_cmk}" cmake_bootstrap_dir="${cmake_binary_dir}/Bootstrap${_cmk}"
# Helper function to fix windows paths. # Helper function to fix windows paths.
cmake_fix_slashes () 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' echo "$1" | sed 's/\\/\//g'
} }
;;
esac
# Choose the default install prefix. # Choose the default install prefix.
if ${cmake_system_mingw}; then if ${cmake_system_mingw}; then