xref: /6.0.3/tlm/cmake/Modules/go-yacc.cmake (revision 8625abaf)
1# Set GOROOT environment
2SET (ENV{GOROOT} "${GOROOT}")
3
4# Execute "go yacc"
5MESSAGE (STATUS "Executing: ${GOYACC_EXECUTABLE} ${YFILE}")
6EXECUTE_PROCESS (RESULT_VARIABLE _failure
7  COMMAND "${GOYACC_EXECUTABLE}" "${YFILE}")
8IF (_failure)
9  MESSAGE (FATAL_ERROR "Failed running go yacc")
10ENDIF (_failure)
11
12