CMake: Try to avoid Strawberry Perl's xsltproc.
[metze/wireshark/wip.git] / cmake / modules / FindXSLTPROC.cmake
index fb2d50a77a5406211d21b38c0e4d5ca4a44dcf7b..a801bdb901227a0a1f292c384256bbc8b30d8847 100644 (file)
@@ -5,13 +5,16 @@
 
 include(FindCygwin)
 
+# Strawberry Perl ships with xsltproc but no DocBook XML files, which
+# is detrimental to our interests. Search for the Chocolatey and Cygwin
+# versions first.
 find_program(XSLTPROC_EXECUTABLE
   NAMES
     xsltproc
-  PATHS
+  HINTS
+    ${ChocolateyInstall}/bin
     ${CYGWIN_INSTALL_PATH}/bin
-    /bin
-    /usr/bin
+  PATHS
     /usr/local/bin
     /sbin
 )