diff options
author | David Cole <david.cole@kitware.com> | 2012-03-02 16:49:50 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-03-02 16:49:50 (GMT) |
commit | b9beb660ea4656021a4ef57e5cbfa4f988108199 (patch) | |
tree | 6a7f7dd023a3a2be143059a688a1c476e344c1ff | |
parent | 1073d50508aa384984b9ea6200863855237ad4a1 (diff) | |
parent | 5cd879c4e75405ab404a2e6c4e77caa36877baf1 (diff) | |
download | CMake-b9beb660ea4656021a4ef57e5cbfa4f988108199.zip CMake-b9beb660ea4656021a4ef57e5cbfa4f988108199.tar.gz CMake-b9beb660ea4656021a4ef57e5cbfa4f988108199.tar.bz2 |
Merge topic 'bootstrap-msys-paths'
5cd879c bootstrap: Convert MSYS paths to Windows format (#13001)
-rwxr-xr-x | bootstrap | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -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 |