mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Merge pull request #1381 from xzfc/master
GenerateHelptags: Fix checking of DESTDIR
This commit is contained in:
commit
6c0a596dac
@ -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}.")
|
||||
|
||||
|
@ -22,7 +22,7 @@ function(create_install_dir_with_perms)
|
||||
|
||||
install(CODE
|
||||
"
|
||||
if(ENV{DESTDIR})
|
||||
if(DEFINED ENV{DESTDIR})
|
||||
set(PREFIX \$ENV{DESTDIR}/\${CMAKE_INSTALL_PREFIX})
|
||||
else()
|
||||
set(PREFIX \${CMAKE_INSTALL_PREFIX})
|
||||
|
Loading…
Reference in New Issue
Block a user