From 14e47e43f987677bc7ca70f8367b710fae54a781 Mon Sep 17 00:00:00 2001 From: Fadhil Mandaga <1750918+firodj@users.noreply.github.com> Date: Sun, 27 Oct 2019 07:27:21 +0700 Subject: [PATCH] add custom command to install_name_tool -add_rpath --- Source/Core/DolphinQt/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index 52b13c981d..7fcb32c583 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -427,6 +427,11 @@ if(APPLE) # Update library references to make the bundle portable include(DolphinPostprocessBundle) 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/" + $) else() install(TARGETS dolphin-emu RUNTIME DESTINATION ${bindir}) endif()