summaryrefslogtreecommitdiffstats
path: root/functions.cmake
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2022-10-03 07:21:55 +0000
committerArne Juul <arnej@yahooinc.com>2022-10-03 13:14:00 +0000
commitdd1de5e737683ce034e30b857b05f2e7bcff9568 (patch)
tree3491337d2717e5145fd41619edaf438431c498fd /functions.cmake
parentf66af762b62a07798656ea3a22db506851dea23c (diff)
ensure early exit when symlink creation fails
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 c2cb2266bf0..90613d13aa4 100644
--- a/functions.cmake
+++ b/functions.cmake
@@ -664,7 +664,7 @@ function(install_jar_dependencies NAME)
endfunction()
function(install_absolute_symlink TARGET LINK)
- install(CODE "execute_process(COMMAND ln -snf ${TARGET} \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${LINK})")
+ install(CODE "execute_process(COMMAND ln -snf ${TARGET} \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${LINK} COMMAND_ERROR_IS_FATAL ANY)")
endfunction(install_absolute_symlink)
function(install_symlink TARGET LINK)