aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindSH.cmake
blob: ebfda9b9e4fc86cc6b99bfb443460faf5c0a90b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# $Id$
#
# - Find unix commands from cygwin
# This module looks for some usual Unix commands.
#

INCLUDE(FindCygwin)

FIND_PROGRAM(SH_EXECUTABLE
  NAMES
    sh
  PATHS
    ${CYGWIN_INSTALL_PATH}/bin
    /bin
    /usr/bin
    /usr/local/bin
    /sbin
)

INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SH DEFAULT_MSG SH_EXECUTABLE)

MARK_AS_ADVANCED(SH_EXECUTABLE)