aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-03-06 09:59:00 -0800
committerGerald Combs <gerald@wireshark.org>2018-03-06 18:00:42 +0000
commitb2d3680558d19998c55b48e9807a26e145756eba (patch)
treebcd99b897ae359a5697538daffd2d71992a20fd4
parent69ddfecb7605683ddb194a9d0e19dedeffbd4a08 (diff)
CMake: Remove FindSH.
We haven't used SH_EXECUTABLE since the Asciidoctor migration. Change-Id: I93e8245ea02ed994ebb62942d5ea4ec890e35a97 Reviewed-on: https://code.wireshark.org/review/26277 Reviewed-by: Gerald Combs <gerald@wireshark.org>
-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 )
-