aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindSED.cmake
blob: ab1d84b6aa8e8c61d6d9874aa7884aa2ba2abe0e (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
#
# $Id$
#
# - Find unix commands from cygwin
# This module looks for some usual Unix commands.
#

INCLUDE(FindCygwin)

FIND_PROGRAM(SED_EXECUTABLE
  NAMES
    sed
  PATHS
    ${CYGWIN_INSTALL_PATH}/bin
    /bin
    /usr/bin
    /usr/local/bin
    /sbin
)

# handle the QUIETLY and REQUIRED arguments and set SED_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SED DEFAULT_MSG SED_EXECUTABLE)

MARK_AS_ADVANCED(SED_EXECUTABLE)