mirror of
https://github.com/anope/anope.git
synced 2026-06-29 23:36:39 +02:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user