summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2019-12-10 17:41:02 +0100
committerGitHub <noreply@github.com>2019-12-10 17:41:02 +0100
commit0cb3257d3fb005ebc8154e114985fa02aec7899e (patch)
tree7b43a310a78f957ff83c15977f632a4d9cf6545c /Source/Core
parent6f274092b64de3c3b74a0b2c5437b8ee0067db3d (diff)
parent14e47e43f987677bc7ca70f8367b710fae54a781 (diff)
Merge pull request #8435 from firodj/pr-fix-macos-qt-plugin-cocoa
DolphinQt: Fix qt.qpa.plugin on MacOS
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt
index 8c6936d10d..f76bf69770 100644
--- a/Source/Core/DolphinQt/CMakeLists.txt
+++ b/Source/Core/DolphinQt/CMakeLists.txt
@@ -433,6 +433,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/"
+ $<TARGET_FILE:dolphin-emu>)
else()
install(TARGETS dolphin-emu RUNTIME DESTINATION ${bindir})
endif()