Commit 79b7fe9d authored by David Cole's avatar David Cole Committed by Kitware Robot

Merge topic 'more-bison-version'

3cc11c2f FindBISON: add a version expression for GNU Bison 1.x
parents a3982c15 3cc11c2f
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment