From 39ecd0d93f18e55065ace90e421fefebfeac9e68 Mon Sep 17 00:00:00 2001 From: Catherine Date: Fri, 5 Jun 2026 15:55:20 +0000 Subject: [PATCH] CMake: specify Flex and Bison version requirements. macOS ships Bison 2.6, which is too old for Yosys. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69b16746c..eb67b393c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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"