CMake: Fix checking of DESTDIR

This commit is contained in:
Albert Safin 2014-11-03 19:05:46 +06:00
parent 33d3a7c83b
commit 62ede403f0

View File

@ -22,7 +22,7 @@ function(create_install_dir_with_perms)
install(CODE install(CODE
" "
if(ENV{DESTDIR}) if(DEFINED ENV{DESTDIR})
set(PREFIX \$ENV{DESTDIR}/\${CMAKE_INSTALL_PREFIX}) set(PREFIX \$ENV{DESTDIR}/\${CMAKE_INSTALL_PREFIX})
else() else()
set(PREFIX \${CMAKE_INSTALL_PREFIX}) set(PREFIX \${CMAKE_INSTALL_PREFIX})