mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
CMake: Use DESTDIR for helptags generation.
This commit is contained in:
parent
866d547cfc
commit
bbaf699b6b
@ -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(
|
execute_process(
|
||||||
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/bin/nvim"
|
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/bin/nvim"
|
||||||
@ -6,7 +10,8 @@ execute_process(
|
|||||||
-esX
|
-esX
|
||||||
-c "helptags ++t ."
|
-c "helptags ++t ."
|
||||||
-c quit
|
-c quit
|
||||||
WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}/share/nvim/runtime/doc"
|
WORKING_DIRECTORY "${HELPTAGS_WORKING_DIRECTORY}"
|
||||||
|
OUTPUT_VARIABLE err
|
||||||
ERROR_VARIABLE err
|
ERROR_VARIABLE err
|
||||||
RESULT_VARIABLE res)
|
RESULT_VARIABLE res)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user