Force cmake to add rpath to support macOS without Swift 5 Runtime Library (prior to 10.14.4)

This commit is contained in:
Edward Li 2021-05-28 05:02:24 +08:00 committed by flyinghead
parent 86d014c3e4
commit 3eeab5b74a
1 changed files with 2 additions and 0 deletions

View File

@ -927,6 +927,8 @@ elseif(APPLE)
XCODE_ATTRIBUTE_SWIFT_OBJC_BRIDGING_HEADER "shell/apple/emulator-osx/emulator-osx/emulator-osx-Bridging-Header.h"
RESOURCE "${XIB}"
XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon"
BUILD_WITH_INSTALL_RPATH TRUE
INSTALL_RPATH "@loader_path/../Frameworks"
)
find_library(AUDIO_UNIT_LIBRARY AudioUnit)