summaryrefslogtreecommitdiff
path: root/Help/prop_tgt/INSTALL_NAME_DIR.rst
blob: 747615ac8e5d9882fedd0503a0c99af69eca57c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
INSTALL_NAME_DIR
----------------

macOS directory name for installed targets.

``INSTALL_NAME_DIR`` is a string specifying the directory portion of the
"install_name" field of shared libraries on macOS to use in the
installed targets.

This property is initialized by the value of the variable
:variable:`CMAKE_INSTALL_NAME_DIR` if it is set when a target is
created.

This property supports :manual:`generator expressions <cmake-generator-expressions(7)>`.
In particular, the ``$<INSTALL_PREFIX>`` generator expression can be used to set the
directory relative to the install-time prefix.