CMP0042.rst 829 B

12345678910111213141516171819202122
  1. CMP0042
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: include/REMOVED_PROLOGUE.rst
  5. :prop_tgt:`MACOSX_RPATH` is enabled by default.
  6. CMake 2.8.12 and newer has support for using ``@rpath`` in a target's install
  7. name. This was enabled by setting the target property
  8. :prop_tgt:`MACOSX_RPATH`. The ``@rpath`` in an install name is a more
  9. flexible and powerful mechanism than ``@executable_path`` or ``@loader_path``
  10. for locating shared libraries.
  11. CMake 3.0 and later prefer this property to be ON by default. Projects
  12. wanting ``@rpath`` in a target's install name may remove any setting of
  13. the :prop_tgt:`INSTALL_NAME_DIR` and :variable:`CMAKE_INSTALL_NAME_DIR`
  14. variables.
  15. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.0
  16. .. |WARNED_OR_DID_NOT_WARN| replace:: warned
  17. .. include:: include/REMOVED_EPILOGUE.rst