MACOSX_RPATH.rst 712 B

123456789101112131415161718
  1. MACOSX_RPATH
  2. ------------
  3. Whether to use rpaths on Mac OS X.
  4. When this property is set to true, the directory portion of
  5. the "install_name" field of shared libraries will be ``@rpath``
  6. unless overridden by :prop_tgt:`INSTALL_NAME_DIR`. Runtime
  7. paths will also be embedded in binaries using this target and
  8. can be controlled by the :prop_tgt:`INSTALL_RPATH` target property.
  9. This property is initialized by the value of the variable
  10. :variable:`CMAKE_MACOSX_RPATH` if it is set when a target is
  11. created.
  12. Policy CMP0042 was introduced to change the default value of
  13. MACOSX_RPATH to ON. This is because use of ``@rpath`` is a
  14. more flexible and powerful alternative to ``@executable_path`` and
  15. ``@loader_path``.