Skip to content

Commit fbff60d

Browse files
committed
Experimental changes to Mac install path with @rpath, so our libopenshot-audio can be used with unit tests in libopenshot builds
1 parent 0736586 commit fbff60d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)