aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindSH.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindSH.cmake')
-rw-r--r--cmake/modules/FindSH.cmake36
1 files changed, 0 insertions, 36 deletions
diff --git a/cmake/modules/FindSH.cmake b/cmake/modules/FindSH.cmake
deleted file mode 100644
index a2aa2bc57e..0000000000
--- a/cmake/modules/FindSH.cmake
+++ /dev/null
@@ -1,36 +0,0 @@
-#
-# - 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 )
-
-# Ensure this is Cygwin bash
-if( WIN32 AND CYGWIN_INSTALL_PATH )
- execute_process( COMMAND ${SH_EXECUTABLE} --version OUTPUT_VARIABLE SH_VERSION )
- string( FIND "${SH_VERSION}" "cygwin" SH_IS_CYGWIN )
- if( ${SH_IS_CYGWIN} LESS 0 )
- set( BAD_SH ${SH_EXECUTABLE} )
- unset( SH_EXECUTABLE CACHE )
- message( FATAL_ERROR "The bash executable (${BAD_SH}) isn't from Cygwin. Check your path" )
- endif()
- set( SH_FLAGS1 -o )
- set( SH_FLAGS2 igncr )
-endif()
-
-mark_as_advanced( SH_EXECUTABLE )
-