mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-28 04:09:35 +03:00
FindBISON: add a version expression for GNU Bison 1.x
This commit is contained in:
@@ -75,8 +75,9 @@ IF(BISON_EXECUTABLE)
|
||||
ELSEIF("${BISON_version_output}" MATCHES "^bison[^+]")
|
||||
STRING(REGEX REPLACE "^bison \\(GNU Bison\\) ([^\n]+)\n.*" "\\1"
|
||||
BISON_VERSION "${BISON_version_output}")
|
||||
ELSE()
|
||||
SET(BISON_VERSION "unknown")
|
||||
ELSEIF("${BISON_version_output}" MATCHES "^GNU Bison ")
|
||||
STRING(REGEX REPLACE "^GNU Bison (version )?([^\n]+).*" "\\2"
|
||||
BISON_VERSION "${BISON_version_output}")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user