CMake: Add missing dependency on ncgen.y/l

This commit is contained in:
Peter Hill 2023-12-11 11:48:11 +00:00
parent 6d6f1a82a0
commit 630099b65f
No known key found for this signature in database
GPG Key ID: 0C6B9742E72848EE

View File

@ -89,6 +89,7 @@ if (GENERATE_NCGEN)
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/ncgeny.h ${CMAKE_CURRENT_SOURCE_DIR}/ncgeny.c ${CMAKE_CURRENT_SOURCE_DIR}/ncgenl.c
DEPENDS ncgen.y ncgen.l
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMAND ${FLEX} -Pncg -8 ncgen/ncgen.l