Skip to content

Commit

Permalink
Make sure install_name_tool on OSX picks up library install path
Browse files Browse the repository at this point in the history
This allows dylib to correctly find libusbmuxd and fixes linking on OSX.
  • Loading branch information
Martin Szulecki authored and marcan committed Sep 26, 2010
1 parent 8e5f8a7 commit 375c07f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libusbmuxd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ set_target_properties(libusbmuxd PROPERTIES OUTPUT_NAME usbmuxd)
set_target_properties(libusbmuxd PROPERTIES VERSION ${LIBUSBMUXD_VERSION})
set_target_properties(libusbmuxd PROPERTIES SOVERSION ${LIBUSBMUXD_SOVERSION})

if(APPLE)
set_target_properties(libusbmuxd PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
endif()

install(TARGETS libusbmuxd
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib${LIB_SUFFIX}
Expand Down

0 comments on commit 375c07f

Please sign in to comment.