From d5d91031d4f89f5eaf71a3c79fdb6630b9624a85 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 29 Jun 2019 11:01:34 +0200 Subject: issue #7091 HEAD fails to build on macOS with stock `bison` Placed minimum `bison` requirement. Tested with bison version 2.7 so used this as minimum. Note: win_flex_bison uses a different external numbering. The e.g. the version 2.5.16 of win_flex_bison contains bison version 3.0.4. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dcd426b..7ee9d7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,9 @@ find_program(DOT NAMES dot) find_package(PythonInterp REQUIRED) find_package(FLEX REQUIRED) find_package(BISON REQUIRED) +if (BISON_VERSION VERSION_LESS 2.7) + message(SEND_ERROR "Doxygen requires at least bison version 2.7 (installed: ${BISON_VERSION})") +endif() find_package(Threads) if (sqlite3) -- cgit v0.12