File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,14 @@ else()
109109 target_link_libraries (element_app PRIVATE ${SPARKLE_FRAMEWORK} )
110110 target_sources (element_app PRIVATE src/sparkle.mm)
111111 add_custom_command (TARGET element_app POST_BUILD
112- COMMAND ${CMAKE_COMMAND} -E copy_directory
113- "${SPARKLE_FRAMEWORK} "
114- "$<TARGET_BUNDLE_CONTENT_DIR:element_app>/Frameworks/Sparkle.framework"
115- COMMENT "Copying Sparkle.framework into app bundle"
116- )
112+ COMMAND ${CMAKE_COMMAND} -E copy_directory
113+ "${SPARKLE_FRAMEWORK} "
114+ "$<TARGET_BUNDLE_CONTENT_DIR:element_app>/Frameworks/Sparkle.framework" )
115+ # Set rpath to find Sparkle.framework in app bundle
116+ set_target_properties (element_app PROPERTIES
117+ BUILD_RPATH "@executable_path/../Frameworks"
118+ INSTALL_RPATH "@executable_path/../Frameworks"
119+ )
117120 endif ()
118121 install (TARGETS element_app
119122 BUNDLE DESTINATION "Applications"
You can’t perform that action at this time.
0 commit comments