summaryrefslogtreecommitdiff
path: root/cmake/modules/FindSED.cmake
blob: d0d7c79a9855bba5c2d249bfeee62c0d1579f4d1 (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
#
# - 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)