#383 CMake fix for client libraries on Mac OS X

Release-2.2
closed-accepted
Player (393)
5
2009-01-26
2008-11-20
Jonas Bähr
No

This patch gives the correct value for the directory part of the "install_name" field for Mac OS X shard libraries. Without this I was unable to run a player client on OS-X 10.5 "Leopard"

--------------8<-------------8<--------------
--- cmake/internal/LibraryUtils.cmake (revision 7125)
+++ cmake/internal/LibraryUtils.cmake (working copy)
@@ -10,7 +10,7 @@
SET_TARGET_PROPERTIES (${_name} PROPERTIES
VERSION ${PLAYER_VERSION}
SOVERSION ${PLAYER_API_VERSION}
- INSTALL_NAME_DIR @rpath
+ INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
INSTALL_RPATH "${INSTALL_RPATH};${CMAKE_INSTALL_PREFIX}/lib"
BUILD_WITH_INSTALL_RPATH TRUE)
INSTALL (TARGETS ${_name} DESTINATION lib/)
--------------8<-------------8<-----------

Discussion

  • Toby Collett

    Toby Collett - 2009-01-04
    • milestone: 167694 --> Release-2.2
     
  • Richard Vaughan

    Richard Vaughan - 2009-01-26
    • status: open --> closed-accepted
     
  • Richard Vaughan

    Richard Vaughan - 2009-01-26

    I had to apply this myself to get working in OS X, so I checked it into trunk.

     
  • Richard Vaughan

    Richard Vaughan - 2009-01-26

    The changes have been made in SVN trunk.
    Thank you for your contribution.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks