CMP0042.rst 833 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. This policy was introduced in CMake version 3.0. CMake version
  14. |release| warns when the policy is not set and uses OLD behavior. Use
  15. the cmake_policy command to set it to OLD or NEW explicitly.
  16. .. include:: DEPRECATED.txt