mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Merge #1110 'CMake: Use DESTDIR for helptags generation.'
This commit is contained in:
commit
ae1788d55d
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user