Skip to content

Commit dd707ae

Browse files
committed
grammar.y is now a built file.
It's built from grammar.y.in.
1 parent 657407f commit dd707ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,9 +2092,9 @@ if("${YACC_NAME}" STREQUAL "bison" OR "${YACC_NAME}" STREQUAL "win_bison")
20922092
endif()
20932093
add_custom_command(
20942094
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/grammar.c ${CMAKE_CURRENT_BINARY_DIR}/grammar.h
2095-
SOURCE ${pcap_SOURCE_DIR}/grammar.y
2096-
COMMAND ${YACC_EXECUTABLE} ${YACC_COMPATIBILITY_FLAG} -p pcap_ -o ${CMAKE_CURRENT_BINARY_DIR}/grammar.c -d ${pcap_SOURCE_DIR}/grammar.y
2097-
DEPENDS ${pcap_SOURCE_DIR}/grammar.y
2095+
SOURCE ${pcap_BINARY_DIR}/grammar.y
2096+
COMMAND ${YACC_EXECUTABLE} ${YACC_COMPATIBILITY_FLAG} -p pcap_ -o ${CMAKE_CURRENT_BINARY_DIR}/grammar.c -d ${pcap_BINARY_DIR}/grammar.y
2097+
DEPENDS ${pcap_BINARY_DIR}/grammar.y
20982098
)
20992099

21002100
#

0 commit comments

Comments
 (0)