316d77d9 |
1 | # bison |
2 | |
3 | # execute FindBISON script by "find_package (Bison)" is required to define BISON_TARGET macro |
4 | |
5 | if (NOT DEFINED 3RDPARTY_BISON_EXECUTABLE) |
6 | set (3RDPARTY_BISON_EXECUTABLE "" CACHE FILEPATH "The path to the bison command") |
7 | endif() |
8 | |
9 | # BISON_EXECUTABLE is required by BISON_TARGET macro and should be defined |
10 | set (BISON_EXECUTABLE "${3RDPARTY_BISON_EXECUTABLE}" CACHE FILEPATH "path to the bison executable" FORCE) |
11 | |
fb3267c7 |
12 | find_package (BISON) |
316d77d9 |
13 | |
14 | if (BISON_FOUND) |
15 | set (3RDPARTY_BISON_EXECUTABLE "${BISON_EXECUTABLE}" CACHE FILEPATH "The Path to the bison command" FORCE) |
16 | endif() |
17 | |
18 | if (NOT 3RDPARTY_BISON_EXECUTABLE OR NOT EXISTS "${3RDPARTY_BISON_EXECUTABLE}") |
19 | list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_BISON_EXECUTABLE) |
20 | endif() |