File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 2121# MacOS/xcode in /usr/bin, which seems to be too old for the reentrant
2222# parser directives we use. Only do this if there is no BISON_ROOT
2323# specifying a particular Bison to use.
24- if (APPLE AND EXISTS /usr/local/opt
25- AND NOT BISON_ROOT AND NOT DEFINED ENV{BISON_ROOT})
26- find_program (BISON_EXECUTABLE NAMES /usr/local/opt/bison/bin/bison
24+ if (APPLE AND NOT BISON_ROOT AND NOT DEFINED ENV{BISON_ROOT}
25+ AND (EXISTS /usr/local/opt OR EXISTS /opt/homebrew
26+ OR DEFINED ENV{HOMEBREW_PREFIX}))
27+ find_program (BISON_EXECUTABLE
28+ NAMES
29+ ENV{HOMEBREW_PREFIX}/opt/bison/bin/bison
30+ /opt/homebrew/opt/bison/bin/bison
31+ /usr/local/opt/bison/bin/bison
2732 DOC "path to the bison executable" )
2833endif ()
2934
You can’t perform that action at this time.
0 commit comments