summaryrefslogtreecommitdiff
path: root/cmake/modules/FindYACC.cmake
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-08-07 14:07:16 -0700
committerGerald Combs <gerald@wireshark.org>2014-08-07 21:54:54 +0000
commit714fa85d85225307af42e2194e551b8087e617dd (patch)
tree7ff8c9477fad1141b6cb2e8b2f89dc0c388849da /cmake/modules/FindYACC.cmake
parent1dc88edc2c3283620adc941a38d5c26cdc1e79c4 (diff)
downloadwireshark-714fa85d85225307af42e2194e551b8087e617dd.tar.gz
Win flex-bison and Chocolatey updates.
Chocolatey's latest winflexbison package is usable. Update config.nmake, FindLEX.cmake, and FindYACC.cmake accordingly. Rename CHOCOLATEY_INSTALL_PATH to CHOCOLATEY_BIN_PATH since that's what we're finding. Change-Id: I39973fba0531b3f7a1315ca010a8bd70581db3fb Reviewed-on: https://code.wireshark.org/review/3479 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'cmake/modules/FindYACC.cmake')
-rw-r--r--cmake/modules/FindYACC.cmake13
1 files changed, 3 insertions, 10 deletions
diff --git a/cmake/modules/FindYACC.cmake b/cmake/modules/FindYACC.cmake
index 17b56417b4..672a780e7d 100644
--- a/cmake/modules/FindYACC.cmake
+++ b/cmake/modules/FindYACC.cmake
@@ -1,15 +1,9 @@
#
-# - Find unix commands from cygwin
-# This module looks for some usual Unix commands.
+# - Find bison/yacc executable
#
INCLUDE(FindCygwin)
-#INCLUDE(FindChocolatey)
-
-# Chocolatey's C:\Chocolatey\bin\win_flex and -\win_bison are
-# currently unusable without some manual adjustments to the
-# win_flex and win_bison wrapper scripts. Calling the executables
-# directly should work.
+INCLUDE(FindChocolatey)
FIND_PROGRAM(YACC_EXECUTABLE
NAMES
@@ -17,9 +11,8 @@ FIND_PROGRAM(YACC_EXECUTABLE
win_bison
yacc
PATHS
+ ${CHOCOLATEY_BIN_PATH}/bin
${CYGWIN_INSTALL_PATH}/bin
-# ${CHOCOLATEY_INSTALL_PATH}/bin
-# ${CHOCOLATEY_INSTALL_PATH}/lib/winflexbison.2.4.1.20140103/tools
/bin
/usr/bin
/usr/local/bin