aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2023-11-02 12:34:16 -0700
committerGitHub <noreply@github.com>2023-11-02 12:34:16 -0700
commitc1a05f61122de6e4b78371b8bfc08914eccffed5 (patch)
treeed801f129db965514f2fe040dc03e4d7742c6ae1
parente0d97d264f83d45472e6cdd1051893db1083eefb (diff)
downloadrneovim-c1a05f61122de6e4b78371b8bfc08914eccffed5.tar.gz
rneovim-c1a05f61122de6e4b78371b8bfc08914eccffed5.tar.bz2
rneovim-c1a05f61122de6e4b78371b8bfc08914eccffed5.zip
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.
-rw-r--r--src/nvim/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index e675edae5c..12614ef60a 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -913,7 +913,10 @@ glob_wrapper(LUA_SOURCES
add_custom_command(
OUTPUT ${VIMDOC_FILES}
COMMAND ${PROJECT_SOURCE_DIR}/scripts/gen_vimdoc.py
- DEPENDS ${API_SOURCES} ${LUA_SOURCES}
+ DEPENDS
+ nvim
+ ${API_SOURCES}
+ ${LUA_SOURCES}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)