mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
add custom command to install_name_tool -add_rpath
This commit is contained in:
@ -427,6 +427,11 @@ if(APPLE)
|
|||||||
# Update library references to make the bundle portable
|
# Update library references to make the bundle portable
|
||||||
include(DolphinPostprocessBundle)
|
include(DolphinPostprocessBundle)
|
||||||
dolphin_postprocess_bundle(dolphin-emu)
|
dolphin_postprocess_bundle(dolphin-emu)
|
||||||
|
# Fix rpath
|
||||||
|
add_custom_command(TARGET dolphin-emu
|
||||||
|
POST_BUILD COMMAND
|
||||||
|
${CMAKE_INSTALL_NAME_TOOL} -add_rpath "@executable_path/../Frameworks/"
|
||||||
|
$<TARGET_FILE:dolphin-emu>)
|
||||||
else()
|
else()
|
||||||
install(TARGETS dolphin-emu RUNTIME DESTINATION ${bindir})
|
install(TARGETS dolphin-emu RUNTIME DESTINATION ${bindir})
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user