修复cmake下门禁失败用例

This commit is contained in:
zhubin79
2024-06-03 21:01:29 +08:00
committed by yaoxin
parent 4da722eb3c
commit c3bc23df69

View File

@ -10,6 +10,12 @@ execute_process(
OUTPUT_VARIABLE PARSER_GRAM
)
execute_process(
COMMAND sed -i "s/\# define YYINITDEPTH .*/\# define YYINITDEPTH 1000/g" gram.cpp
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE PARSER_GRAM
)
execute_process(
COMMAND bison -d -o hint_gram.cpp hint_gram.y
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}