build: make the vimdoc generation depend on the nvim target (#25876)

The gen_vimdoc.py script uses the nvim executable, so the executable
must be built before running the script.
This commit is contained in:
Gregory Anders 2023-11-02 12:34:16 -07:00 committed by GitHub
parent e0d97d264f
commit c1a05f6112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -913,7 +913,10 @@ glob_wrapper(LUA_SOURCES
add_custom_command( add_custom_command(
OUTPUT ${VIMDOC_FILES} OUTPUT ${VIMDOC_FILES}
COMMAND ${PROJECT_SOURCE_DIR}/scripts/gen_vimdoc.py COMMAND ${PROJECT_SOURCE_DIR}/scripts/gen_vimdoc.py
DEPENDS ${API_SOURCES} ${LUA_SOURCES} DEPENDS
nvim
${API_SOURCES}
${LUA_SOURCES}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
) )