CMake: Fix helptags generation.

This commit is contained in:
Florian Walch 2014-11-03 19:46:40 +01:00
parent 3fa28d2ba5
commit cc7199f0e5
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
if(ENV{DESTDIR})
if(DEFINED ENV{DESTDIR})
file(TO_CMAKE_PATH
"$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/share/nvim/runtime/doc"
HELPTAGS_WORKING_DIRECTORY)

View File

@ -23,6 +23,7 @@ function(create_install_dir_with_perms)
install(CODE
"
if(ENV{DESTDIR})
# TODO(fwalch): Is this branch ever taken (#1381, #1387)?
set(PREFIX \$ENV{DESTDIR}/\${CMAKE_INSTALL_PREFIX})
else()
set(PREFIX \${CMAKE_INSTALL_PREFIX})