Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2011, 11:20:46 PM (14 years ago)
Author:
rgrieder
Message:

Add RPATH for installed libraries too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib/cmake/tools/TargetUtilities.cmake

    r8233 r8270  
    287287  ENDIF()
    288288
     289  # RPATH settings for the installation
     290  IF(UNIX)
     291    SET(_rpath ${LIBRARY_INSTALL_DIRECTORY})
     292    IF(_arg_MODULE)
     293      LIST(APPEND _rpath ${MODULE_INSTALL_DIRECTORY})
     294    ENDIF()
     295    SET_TARGET_PROPERTIES(${_target_name} PROPERTIES INSTALL_RPATH "${_rpath}")
     296  ENDIF()
     297
    289298  # DEFINE_SYMBOL
    290299  IF(_arg_DEFINE_SYMBOL)
Note: See TracChangeset for help on using the changeset viewer.