0029250: Configuration, TKIVtk - build failure with VTK 6.3+ due to vtkRenderingFreeT...
[occt.git] / adm / cmake / bison.cmake
CommitLineData
316d77d9 1# bison
2
3# execute FindBISON script by "find_package (Bison)" is required to define BISON_TARGET macro
4
5if (NOT DEFINED 3RDPARTY_BISON_EXECUTABLE)
6 set (3RDPARTY_BISON_EXECUTABLE "" CACHE FILEPATH "The path to the bison command")
7endif()
8
9# BISON_EXECUTABLE is required by BISON_TARGET macro and should be defined
10set (BISON_EXECUTABLE "${3RDPARTY_BISON_EXECUTABLE}" CACHE FILEPATH "path to the bison executable" FORCE)
11
fb3267c7 12find_package (BISON)
316d77d9 13
14if (BISON_FOUND)
15 set (3RDPARTY_BISON_EXECUTABLE "${BISON_EXECUTABLE}" CACHE FILEPATH "The Path to the bison command" FORCE)
16endif()
17
18if (NOT 3RDPARTY_BISON_EXECUTABLE OR NOT EXISTS "${3RDPARTY_BISON_EXECUTABLE}")
19 list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_BISON_EXECUTABLE)
20endif()