mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 15:21:20 +00:00
build: Improve GenerateHelptags.cmake failure message
Some errors during helptags can be caused by duplicate/wrong tags after documentation cleanup. Suggest the removal of the "doc" directory.
This commit is contained in:
@@ -9,6 +9,12 @@ else()
|
||||
endif()
|
||||
|
||||
message(STATUS "Generating helptags in ${HELPTAGS_WORKING_DIRECTORY}.")
|
||||
if(EXISTS "${HELPTAGS_WORKING_DIRECTORY}/")
|
||||
message(STATUS "${HELPTAGS_WORKING_DIRECTORY} already exists")
|
||||
# if the doc directory already exists, helptags could fail due to duplicate
|
||||
# tags. Tell the user to remove the directory and try again.
|
||||
set(TROUBLESHOOTING "\nRemove \"${HELPTAGS_WORKING_DIRECTORY}\" and try again")
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/bin/nvim"
|
||||
@@ -22,5 +28,5 @@ execute_process(
|
||||
RESULT_VARIABLE res)
|
||||
|
||||
if(NOT res EQUAL 0)
|
||||
message(FATAL_ERROR "Generating helptags failed: ${err} - ${res}")
|
||||
message(FATAL_ERROR "Generating helptags failed: ${err} - ${res}${TROUBLESHOOTING}")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user