316d77d9 |
1 | # flex |
2 | |
3 | # execute FindFLEX script by "find_package (Flex)" is required to define FLEX_TARGET macro |
4 | |
5 | if (NOT DEFINED 3RDPARTY_FLEX_EXECUTABLE) |
6 | set (3RDPARTY_FLEX_EXECUTABLE "" CACHE FILEPATH "The Path to the flex command") |
7 | endif() |
8 | |
9 | # FLEX_EXECUTABLE is required by FLEX_TARGET macro and should be defined |
10 | set (FLEX_EXECUTABLE "${3RDPARTY_FLEX_EXECUTABLE}" CACHE FILEPATH "path to the flex executable" FORCE) |
11 | |
12 | find_package (FLEX) |
13 | |
14 | if (FLEX_FOUND) |
15 | set (3RDPARTY_FLEX_EXECUTABLE "${FLEX_EXECUTABLE}" CACHE FILEPATH "The Path to the flex command" FORCE) |
16 | endif() |
17 | |
18 | if (NOT 3RDPARTY_FLEX_EXECUTABLE OR NOT EXISTS "${3RDPARTY_FLEX_EXECUTABLE}") |
19 | list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_FLEX_EXECUTABLE) |
20 | endif() |