build: Fix CMake target dependency problem

nvim was being ran before its runtime dependencies were copied.
This commit is contained in:
b-r-o-c-k 2018-03-17 16:20:32 -05:00
parent feee814b30
commit c49dac7cd3

View File

@ -42,6 +42,7 @@ foreach(PACKAGE ${PACKAGES})
nvim nvim
WORKING_DIRECTORY "${GENERATED_PACKAGE_DIR}/${PACKNAME}" WORKING_DIRECTORY "${GENERATED_PACKAGE_DIR}/${PACKNAME}"
) )
add_dependencies(${PACKNAME}-tags nvim_runtime_deps)
add_custom_command(OUTPUT "${GENERATED_PACKAGE_DIR}/${PACKNAME}/doc/tags" add_custom_command(OUTPUT "${GENERATED_PACKAGE_DIR}/${PACKNAME}/doc/tags"
DEPENDS DEPENDS
@ -80,6 +81,7 @@ add_custom_target(helptags
nvim nvim
WORKING_DIRECTORY "${GENERATED_RUNTIME_DIR}" WORKING_DIRECTORY "${GENERATED_RUNTIME_DIR}"
) )
add_dependencies(helptags nvim_runtime_deps)
add_custom_command(OUTPUT ${GENERATED_HELP_TAGS} add_custom_command(OUTPUT ${GENERATED_HELP_TAGS}
DEPENDS DEPENDS