CMP0042.rst 761 B

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