1 # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 # file Copyright.txt or https://cmake.org/licensing for details.
4 #[=======================================================================[.rst:
10 Use :option:`${CMAKE_COMMAND} -E <cmake -E>` subcommands instead.
12 Find Unix commands, including the ones from Cygwin
14 This module looks for the Unix commands ``bash``, ``cp``, ``gzip``,
15 ``mv``, ``rm``, and ``tar`` and stores the result in the variables
16 ``BASH``, ``CP``, ``GZIP``, ``MV``, ``RM``, and ``TAR``.
17 #]=======================================================================]
19 include(${CMAKE_CURRENT_LIST_DIR}/FindCygwin.cmake)
20 include(${CMAKE_CURRENT_LIST_DIR}/FindMsys.cmake)
24 ${CYGWIN_INSTALL_PATH}/bin
25 ${MSYS_INSTALL_PATH}/usr/bin
33 ${CYGWIN_INSTALL_PATH}/bin
34 ${MSYS_INSTALL_PATH}/usr/bin
42 ${CYGWIN_INSTALL_PATH}/bin
43 ${MSYS_INSTALL_PATH}/usr/bin
51 ${CYGWIN_INSTALL_PATH}/bin
52 ${MSYS_INSTALL_PATH}/usr/bin
60 ${CYGWIN_INSTALL_PATH}/bin
61 ${MSYS_INSTALL_PATH}/usr/bin
72 ${CYGWIN_INSTALL_PATH}/bin
73 ${MSYS_INSTALL_PATH}/usr/bin
79 include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
80 find_package_handle_standard_args(UnixCommands
81 REQUIRED_VARS BASH CP GZIP MV RM TAR