GenerateHelptags: Use ${PREFIX} variable

This commit is contained in:
Albert Safin 2014-11-03 19:06:59 +06:00
parent 62ede403f0
commit 37be21fdee

View File

@ -1,12 +1,6 @@
if(ENV{DESTDIR})
file(TO_CMAKE_PATH
"$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/share/nvim/runtime/doc"
HELPTAGS_WORKING_DIRECTORY)
else()
file(TO_CMAKE_PATH
"${CMAKE_INSTALL_PREFIX}/share/nvim/runtime/doc"
HELPTAGS_WORKING_DIRECTORY)
endif()
file(TO_CMAKE_PATH
"${PREFIX}/share/nvim/runtime/doc"
HELPTAGS_WORKING_DIRECTORY)
message(STATUS "Generating helptags in ${HELPTAGS_WORKING_DIRECTORY}.")