mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
Merge #1110 'CMake: Use DESTDIR for helptags generation.'
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
message(STATUS "Generating helptags.")
|
||||
file(TO_CMAKE_PATH
|
||||
"$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/share/nvim/runtime/doc"
|
||||
HELPTAGS_WORKING_DIRECTORY)
|
||||
|
||||
message(STATUS "Generating helptags in ${HELPTAGS_WORKING_DIRECTORY}.")
|
||||
|
||||
execute_process(
|
||||
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/bin/nvim"
|
||||
@@ -6,7 +10,8 @@ execute_process(
|
||||
-esX
|
||||
-c "helptags ++t ."
|
||||
-c quit
|
||||
WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}/share/nvim/runtime/doc"
|
||||
WORKING_DIRECTORY "${HELPTAGS_WORKING_DIRECTORY}"
|
||||
OUTPUT_VARIABLE err
|
||||
ERROR_VARIABLE err
|
||||
RESULT_VARIABLE res)
|
||||
|
||||
|
Reference in New Issue
Block a user