summaryrefslogtreecommitdiffstats
path: root/libusbmuxd
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-09-26 15:06:58 +0200
committerGravatar Hector Martin2010-09-26 15:05:54 +0200
commit375c07f27e591d3fffcb9b8103e535b0f471182a (patch)
treee58fcfb9ad9da5fb65389caec46e64c73900391a /libusbmuxd
parent8e5f8a700569015bc36a84850c6d4b4bba5cd1ae (diff)
downloadusbmuxd-375c07f27e591d3fffcb9b8103e535b0f471182a.tar.gz
usbmuxd-375c07f27e591d3fffcb9b8103e535b0f471182a.tar.bz2
Make sure install_name_tool on OSX picks up library install path
This allows dylib to correctly find libusbmuxd and fixes linking on OSX.
Diffstat (limited to 'libusbmuxd')
-rw-r--r--libusbmuxd/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/libusbmuxd/CMakeLists.txt b/libusbmuxd/CMakeLists.txt
index 81203d3..2f9a07e 100644
--- a/libusbmuxd/CMakeLists.txt
+++ b/libusbmuxd/CMakeLists.txt
@@ -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}