mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
Merge topic 'bootstrap-msys-paths'
5cd879c bootstrap: Convert MSYS paths to Windows format (#13001)
This commit is contained in:
18
bootstrap
18
bootstrap
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user