summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorDominic Hargreaves <dom@earth.li>2015-07-01 20:08:51 -0400
committerAdam <Adam@anope.org>2015-07-01 20:08:51 -0400
commit4cbdf9a73bae33ecf7fbf04cbeb65e6d4ba2aa3f (patch)
tree15006c922d07357be6cd1a9dbd17e8c0ccc86355 /src/tools
parentfce257dc4391840cc868b905e4b8f2125ac59a7b (diff)
Support DESTDIR
If DESTDIR is set it should be prepended to CMAKE_INSTALL_PREFIX. See <http://www.cmake.org/cmake/help/v3.2/variable/CMAKE_INSTALL_PREFIX.html>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt
index 200aa2bf3..e547a2e9a 100644
--- a/src/tools/CMakeLists.txt
+++ b/src/tools/CMakeLists.txt
@@ -48,5 +48,5 @@ endif(NOT WIN32)
# On non-Windows platforms, if RUNGROUP is set, change the permissions of the tools directory
if(NOT WIN32 AND RUNGROUP)
- install(CODE "execute_process(COMMAND ${CHMOD} 2770 \"\${CMAKE_INSTALL_PREFIX}/bin\")")
+ install(CODE "execute_process(COMMAND ${CHMOD} 2770 \"\$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/bin\")")
endif(NOT WIN32 AND RUNGROUP)