summaryrefslogtreecommitdiffstats
path: root/functions.cmake
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@oath.com>2018-08-06 14:59:41 +0200
committerArnstein Ressem <aressem@oath.com>2018-08-06 14:59:41 +0200
commitb58b66bf735746ec0ea23f646dbd3340c3e323b9 (patch)
treeb3b7365d7e19e4dd8b456d6bf597e51f3228342e /functions.cmake
parentbd5065a55f3316b9dd4552bb10882cb57b519ba7 (diff)
Absolute path to link.
Diffstat (limited to 'functions.cmake')
-rw-r--r--functions.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.cmake b/functions.cmake
index 04c72014833..999dbb18cd8 100644
--- a/functions.cmake
+++ b/functions.cmake
@@ -559,6 +559,6 @@ function(add_auxilliary_modules)
endfunction()
function(install_symlink TARGET LINK)
- install(CODE "execute_process(COMMAND ln -sf ${CMAKE_INSTALL_PREFIX}/${TARGET} ${LINK})")
+ install(CODE "execute_process(COMMAND ln -sf ${CMAKE_INSTALL_PREFIX}/${TARGET} $ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${LINK})")
endfunction(install_symlink)