CMake: Respect SKIP_POSTPROCESS_BUNDLE
This commit is contained in:
parent
70bf89fa59
commit
e4614067b3
|
@ -578,14 +578,16 @@ if(APPLE)
|
||||||
set_source_files_properties("${SOURCE_DIR}/Package/Release/MoltenVK/dylib/macOS/libMoltenVK.dylib" PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks GENERATED ON)
|
set_source_files_properties("${SOURCE_DIR}/Package/Release/MoltenVK/dylib/macOS/libMoltenVK.dylib" PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks GENERATED ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Update library references to make the bundle portable
|
if(NOT SKIP_POSTPROCESS_BUNDLE)
|
||||||
include(DolphinPostprocessBundle)
|
# Update library references to make the bundle portable
|
||||||
dolphin_postprocess_bundle(dolphin-emu)
|
include(DolphinPostprocessBundle)
|
||||||
# Fix rpath
|
dolphin_postprocess_bundle(dolphin-emu)
|
||||||
add_custom_command(TARGET dolphin-emu
|
# Fix rpath
|
||||||
POST_BUILD COMMAND
|
add_custom_command(TARGET dolphin-emu
|
||||||
${CMAKE_INSTALL_NAME_TOOL} -add_rpath "@executable_path/../Frameworks/"
|
POST_BUILD COMMAND
|
||||||
$<TARGET_FILE:dolphin-emu>)
|
${CMAKE_INSTALL_NAME_TOOL} -add_rpath "@executable_path/../Frameworks/"
|
||||||
|
$<TARGET_FILE:dolphin-emu>)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(MACOS_CODE_SIGNING)
|
if(MACOS_CODE_SIGNING)
|
||||||
# Code sign make file builds
|
# Code sign make file builds
|
||||||
|
|
Loading…
Reference in New Issue