CI: Add extra rpath for macOS test binaries

master
Colin Edwards 2021-12-06 01:12:29 -06:00 committed by GitHub
parent 3bf21618f1
commit 61ca8d47aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,10 @@ macro(fixLink target_arg)
POST_BUILD COMMAND "${CMAKE_INSTALL_NAME_TOOL}"
"-change" "@rpath/libobs.0.dylib" "@executable_path/../../libobs/libobs.0.dylib"
"$<TARGET_FILE:${target_arg}>" VERBATIM)
add_custom_command (TARGET ${target_arg}
POST_BUILD COMMAND "${CMAKE_INSTALL_NAME_TOOL}"
"-add_rpath" /tmp/obsdeps/lib
"$<TARGET_FILE:${target_arg}>" VERBATIM)
endif()
endmacro()