Build: On Windows, ensure we have found Cygwin bash
authorGraham Bloice <graham.bloice@trihedral.com>
Sat, 2 Jan 2016 21:41:00 +0000 (21:41 +0000)
committerGraham Bloice <graham.bloice@trihedral.com>
Sat, 2 Jan 2016 22:59:03 +0000 (22:59 +0000)
commit40a21c0236d1ad373c42f130ace0bc5873fea373
tree7bbc28cbe4ca0aab1cc5973659cd4b264c826e95
parent3866df04dda2ee11ef8d0c21f980a95977f793fe
Build: On Windows, ensure we have found Cygwin bash

git can be installed (or the path manually set) so that the msys
unix utilities supplied with git (expecially bash) are on the path
and then picked up by CMake.  These utilities are not compatible with
the build and will fail.

This change checks the output of the --version option to the found
executable and ensures "cygwin" is found in the result.  If not found
a FATAL_ERROR message is issued and the CMake generation is stopped.

Change-Id: I0eca014ae194862abbc8dee56d347526691e72cb
Reviewed-on: https://code.wireshark.org/review/13008
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
cmake/modules/FindSH.cmake