diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-10-03 07:21:55 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-10-03 13:14:00 +0000 |
commit | dd1de5e737683ce034e30b857b05f2e7bcff9568 (patch) | |
tree | 3491337d2717e5145fd41619edaf438431c498fd | |
parent | f66af762b62a07798656ea3a22db506851dea23c (diff) |
ensure early exit when symlink creation fails
-rw-r--r-- | functions.cmake | 2 |
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) |