2009-09-23 19:40:25 +00:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
2009-06-15 18:59:33 +00:00
|
|
|
# - Find unix commands from cygwin
|
|
|
|
# This module looks for some usual Unix commands.
|
|
|
|
#
|
|
|
|
|
|
|
|
INCLUDE(FindCygwin)
|
|
|
|
|
|
|
|
FIND_PROGRAM(SED_EXECUTABLE
|
2009-08-30 06:18:43 +00:00
|
|
|
NAMES
|
|
|
|
sed
|
|
|
|
PATHS
|
|
|
|
${CYGWIN_INSTALL_PATH}/bin
|
|
|
|
/bin
|
|
|
|
/usr/bin
|
|
|
|
/usr/local/bin
|
|
|
|
/sbin
|
2009-06-15 18:59:33 +00:00
|
|
|
)
|
|
|
|
|
2009-08-30 06:18:43 +00:00
|
|
|
MARK_AS_ADVANCED(SED_EXECUTABLE)
|
2009-06-15 18:59:33 +00:00
|
|
|
|
|
|
|
# search sed
|
|
|
|
MACRO(FIND_SED)
|
|
|
|
IF(NOT SED_EXECUTABLE)
|
|
|
|
FIND_PROGRAM(SED_EXECUTABLE sed)
|
|
|
|
IF (NOT SED_EXECUTABLE)
|
|
|
|
MESSAGE(FATAL_ERROR "sed not found - aborting")
|
|
|
|
ENDIF (NOT SED_EXECUTABLE)
|
|
|
|
ENDIF(NOT SED_EXECUTABLE)
|
|
|
|
ENDMACRO(FIND_SED)
|
|
|
|
|