Skip to content

Commit 5bd5f2d

Browse files
authored
Merge pull request #165 from OpenShot/ffmpeg-performance
Fix Mac install path with @rpath
2 parents 0736586 + fbff60d commit 5bd5f2d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,10 @@ endif()
231231

232232
if(APPLE)
233233
set_target_properties(openshot-audio PROPERTIES
234-
INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
235-
MACOSX_RPATH OFF
234+
INSTALL_NAME_DIR "@rpath"
235+
BUILD_WITH_INSTALL_RPATH ON
236+
INSTALL_RPATH_USE_LINK_PATH ON
237+
INSTALL_RPATH "@loader_path/../lib;@executable_path/../lib"
236238
)
237239
target_link_libraries(openshot-audio PRIVATE
238240
"-framework Carbon"

0 commit comments

Comments
 (0)