CMake: specify Flex and Bison version requirements.

macOS ships Bison 2.6, which is too old for Yosys.
This commit is contained in:
Catherine 2026-06-05 15:55:20 +00:00
parent d50dc9a461
commit 39ecd0d93f
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ if (APPLE)
use_homebrew()
endif()
find_package(FLEX)
find_package(FLEX 2.6)
set_package_properties(FLEX PROPERTIES
URL "https://github.com/westes/flex"
DESCRIPTION "The Fast Lexical Analyzer"
@ -176,7 +176,7 @@ set_package_properties(FLEX PROPERTIES
TYPE REQUIRED
)
find_package(BISON)
find_package(BISON 3.6)
set_package_properties(BISON PROPERTIES
URL "https://www.gnu.org/software/bison/"
DESCRIPTION "The Yacc-compatible Parser Generator"