Skip to content
  • Brad King's avatar
    bootstrap: Convert MSYS paths to Windows format (#13001) · 5cd879c4
    Brad King authored
    We set CMAKE_PREFIX_PATH from the --prefix= option.  The calling shell
    might not translate "/c/..." to "c:/..." paths but we need to store
    Windows paths in CMake cache variables.  Pass the specified path through
    the MSYS shell in a form it will convert to a Windows path using the
    MSYS fstab.
    
    Some MSYS bash implementations leave trailing space on the command line
    to 'cmd /c echo ...' after quoting the message.  The Windows echo tool
    preserves both the quotes and the trailing space.  Use a sed expression
    that strips quotes and trailing spaces after the end quote.
    5cd879c4