CMake: Try to avoid Strawberry Perl's xsltproc.
authorGerald Combs <gerald@wireshark.org>
Wed, 14 Feb 2018 20:01:35 +0000 (12:01 -0800)
committerGerald Combs <gerald@wireshark.org>
Wed, 14 Feb 2018 20:23:43 +0000 (20:23 +0000)
commitbfedd74e99a04fb4ef802fb8a663e3bf76721992
tree687dadcc3bd964ec211ba8c23f73e1a14a485dbb
parent7da66f8676cc663d8898b5ff9cf41cad80df4900
CMake: Try to avoid Strawberry Perl's xsltproc.

Search for Chocolatey's and Cygwin's respective xsltprocs before searching
%PATH%. Strawberry Perl doesn't include DocBook, which makes it useless
as far as we're concerned.

Another approach would be to look in various locations for an XML catalog
files and set %XML_CATALOG_FILES%. However, Cygwin's /etc/xml/catalog
contains Cygwin-specific URLs, e.g. file:///etc/xml/docbook and can't
be used with a non-Cygwin xsltproc.

Change-Id: Iaebfdff922a6574581b9bd207625f03598c166e0
Reviewed-on: https://code.wireshark.org/review/25794
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
cmake/modules/FindXSLTPROC.cmake