FindBISON
FindBISON
Find bison
executable and provide a macro to generate custom build rules.
The module defines the following variables:
-
BISON_EXECUTABLE
- path to the
bison
program -
BISON_VERSION
- version of
bison
-
BISON_FOUND
- true if the program was found
The minimum required version of bison
can be specified using the standard CMake syntax, e.g. find_package(BISON 2.1.3)
.
If bison
is found, the module defines the macro:
BISON_TARGET(<Name> <YaccInput> <CodeOutput> [COMPILE_FLAGS <flags>] [DEFINES_FILE <file>] [VERBOSE <file>] )
which will create a custom rule to generate a parser. <YaccInp