| # Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
| # file Copyright.txt or https://cmake.org/licensing for details. |
| #[=======================================================================[.rst: |
| Find MSYS, a POSIX-compatible environment that runs natively |
| #]=======================================================================] |
| set(MSYS_CMD "${MSYS_INSTALL_PATH}/msys2_shell.cmd") |
| # Typical install path for MSYS2 (https://repo.msys2.org/distrib/msys2-i686-latest.sfx.exe) |
| # Typical install path for MSYS2 (https://repo.msys2.org/distrib/msys2-x86_64-latest.sfx.exe) |
| # Git for Windows (https://gitforwindows.org/) |
| "[HKEY_LOCAL_MACHINE\\SOFTWARE\\GitForWindows;InstallPath]" |
| get_filename_component(MSYS_INSTALL_PATH "${MSYS_CMD}" DIRECTORY) |
| mark_as_advanced(MSYS_CMD) |