summaryrefslogtreecommitdiffstats
path: root/functions.cmake
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@oath.com>2018-07-31 14:15:51 +0200
committerArnstein Ressem <aressem@oath.com>2018-07-31 14:15:51 +0200
commitf82b84a9d41eb2f59598ef1531d91b9afc04262d (patch)
tree90512320adfc223e9aec482a3bc57f1578f7762e /functions.cmake
parent599bd706d36183230e144a7f365780c367145a6e (diff)
Add install_symlink funciton.
Diffstat (limited to 'functions.cmake')
-rw-r--r--functions.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.cmake b/functions.cmake
index bfff9d23ef6..42cab0b2052 100644
--- a/functions.cmake
+++ b/functions.cmake
@@ -1,5 +1,6 @@
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
# @author Vegard Sjonfjell
+# @author Arnstein Ressem
function(vespa_add_module_dependency OTHER_TARGET_OR_LIB)
if (TARGET ${OTHER_TARGET_OR_LIB})
@@ -557,4 +558,7 @@ function(add_auxilliary_modules)
endif()
endfunction()
+function(install_symlink TARGET LINK)
+ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_INSTALL_PREFIX}/{TARGET} ${CMAKE_INSTALL_PREFIX}/${LINK})")
+endfunction(install_symlink)