CMake: Respect SKIP_POSTPROCESS_BUNDLE

This commit is contained in:
TellowKrinkle 2022-05-30 19:46:18 -05:00
parent 70bf89fa59
commit e4614067b3

View File

@ -578,6 +578,7 @@ 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()
if(NOT SKIP_POSTPROCESS_BUNDLE)
# Update library references to make the bundle portable # Update library references to make the bundle portable
include(DolphinPostprocessBundle) include(DolphinPostprocessBundle)
dolphin_postprocess_bundle(dolphin-emu) dolphin_postprocess_bundle(dolphin-emu)
@ -586,6 +587,7 @@ if(APPLE)
POST_BUILD COMMAND POST_BUILD COMMAND
${CMAKE_INSTALL_NAME_TOOL} -add_rpath "@executable_path/../Frameworks/" ${CMAKE_INSTALL_NAME_TOOL} -add_rpath "@executable_path/../Frameworks/"
$<TARGET_FILE:dolphin-emu>) $<TARGET_FILE:dolphin-emu>)
endif()
if(MACOS_CODE_SIGNING) if(MACOS_CODE_SIGNING)
# Code sign make file builds # Code sign make file builds