build: fix help tags generation when SHELL=fish (#21562)

Fish doesn't support glob pattern, so we use `remove_directory` instead.
This commit is contained in:
figsoda 2022-12-29 07:05:26 -05:00 committed by GitHub
parent b640161a69
commit 19a7636641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ foreach(DF ${DOCFILES})
endforeach()
add_custom_command(OUTPUT ${GENERATED_HELP_TAGS}
COMMAND ${CMAKE_COMMAND} -E remove doc/*
COMMAND ${CMAKE_COMMAND} -E remove_directory doc
COMMAND ${CMAKE_COMMAND} -E copy_directory
${PROJECT_SOURCE_DIR}/runtime/doc doc
COMMAND "${PROJECT_BINARY_DIR}/bin/nvim"