Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 24, 2011, 5:46:26 AM (14 years ago)
Author:
rgrieder
Message:

Do not specify the CMAKE_INSTALL_PREFIX when using the INSTALL command. It works too, but is not recommended and breaks CPack.

File:
1 edited

Legend:

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

    r8292 r8317  
    289289  # RPATH settings for the installation
    290290  IF(UNIX)
    291     SET(_rpath ${LIBRARY_INSTALL_DIRECTORY})
     291    SET(_rpath ${CMAKE_INSTALL_PREFIX}/${LIBRARY_INSTALL_DIRECTORY})
    292292    IF(_arg_MODULE)
    293       LIST(APPEND _rpath ${MODULE_INSTALL_DIRECTORY})
     293      LIST(APPEND _rpath ${CMAKE_INSTALL_PREFIX}/${MODULE_INSTALL_DIRECTORY})
    294294    ENDIF()
    295295    SET_TARGET_PROPERTIES(${_target_name} PROPERTIES INSTALL_RPATH "${_rpath}")
Note: See TracChangeset for help on using the changeset viewer.