2013-10-15 19:17:36 +04:00
|
|
|
MACOSX_RPATH
|
|
|
|
------------
|
|
|
|
|
2015-11-11 07:37:15 +03:00
|
|
|
Whether this target on OS X or iOS is located at runtime using rpaths.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
When this property is set to true, the directory portion of
|
2015-11-02 16:46:02 +03:00
|
|
|
the "install_name" field of this shared library will be ``@rpath``
|
|
|
|
unless overridden by :prop_tgt:`INSTALL_NAME_DIR`. This indicates
|
|
|
|
the shared library is to be found at runtime using runtime
|
|
|
|
paths (rpaths).
|
|
|
|
|
2013-12-19 08:25:29 +04:00
|
|
|
This property is initialized by the value of the variable
|
|
|
|
:variable:`CMAKE_MACOSX_RPATH` if it is set when a target is
|
|
|
|
created.
|
|
|
|
|
2015-11-02 16:46:02 +03:00
|
|
|
Runtime paths will also be embedded in binaries using this target and
|
|
|
|
can be controlled by the :prop_tgt:`INSTALL_RPATH` target property on
|
|
|
|
the target linking to this target.
|
|
|
|
|
2015-11-11 07:37:15 +03:00
|
|
|
Policy :policy:`CMP0042` was introduced to change the default value of
|
|
|
|
``MACOSX_RPATH`` to ``TRUE. This is because use of ``@rpath`` is a
|
2013-12-19 08:25:29 +04:00
|
|
|
more flexible and powerful alternative to ``@executable_path`` and
|
|
|
|
``@loader_path``.
|