blob: 83032a731ff7d80032f9f91aeac6fef296cb64e1 (
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
26
27
28
29
30
31
32
|
#
# $Id$
#
# - Find unix commands from cygwin
# This module looks for some usual Unix commands.
#
include( FindCygwin )
find_program( SH_EXECUTABLE
NAMES
bash
PATHS
${CYGWIN_INSTALL_PATH}/bin
/bin
/usr/bin
/usr/local/bin
/sbin
)
include( FindPackageHandleStandardArgs )
find_package_handle_standard_args( SH DEFAULT_MSG SH_EXECUTABLE )
# FIXME: Don't match on the name but check whether the argument is
# accepted or not. OTOH, if it isn't accepted, build will fail on Win.
if( WIN32 )
set( SH_FLAGS1 -o )
set( SH_FLAGS2 igncr )
endif()
mark_as_advanced( SH_EXECUTABLE )
|