From 62ede403f02c873177c9043718cecf3941f8a17e Mon Sep 17 00:00:00 2001 From: Albert Safin Date: Mon, 3 Nov 2014 19:05:46 +0600 Subject: [PATCH] CMake: Fix checking of DESTDIR --- cmake/InstallHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/InstallHelpers.cmake b/cmake/InstallHelpers.cmake index faf980bd47..bf1ef1c0d6 100644 --- a/cmake/InstallHelpers.cmake +++ b/cmake/InstallHelpers.cmake @@ -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})