Merge pull request #8435 from firodj/pr-fix-macos-qt-plugin-cocoa

DolphinQt: Fix qt.qpa.plugin on MacOS
This commit is contained in:
spycrab 2019-12-10 17:41:02 +01:00 committed by GitHub
commit 0cb3257d3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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()