summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt
diff options
context:
space:
mode:
authorRuslan Baratov <ruslan_baratov@yahoo.com>2016-09-30 23:30:57 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-03 17:42:27 (GMT)
commitdc6d8066607435a0d4b6338bc53e0b1ac746bd35 (patch)
treebd3368be75c92bc776ba126c984c98e5abd07436 /Help/prop_tgt
parent484dc1e5d85f4f468e27816eab0fccc9c7d6ec11 (diff)
downloadCMake-dc6d8066607435a0d4b6338bc53e0b1ac746bd35.zip
CMake-dc6d8066607435a0d4b6338bc53e0b1ac746bd35.tar.gz
CMake-dc6d8066607435a0d4b6338bc53e0b1ac746bd35.tar.bz2
Add a BUILD_RPATH target property specifying build-tree RPATH entries
Users may need to add custom `RPATH` entries to be able to run binaries from their build tree without setting `LD_LIBRARY_PATH`. Provide a way to do this that does not affect the install-tree `RPATH`.
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r--Help/prop_tgt/BUILD_RPATH.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/prop_tgt/BUILD_RPATH.rst b/Help/prop_tgt/BUILD_RPATH.rst
new file mode 100644
index 0000000..27393f5
--- /dev/null
+++ b/Help/prop_tgt/BUILD_RPATH.rst
@@ -0,0 +1,10 @@
+BUILD_RPATH
+-----------
+
+A :ref:`;-list <CMake Language Lists>` specifying runtime path (``RPATH``)
+entries to add to binaries linked in the build tree (for platforms that
+support it). The entries will *not* be used for binaries in the install
+tree. See also the :prop_tgt:`INSTALL_RPATH` target property.
+
+This property is initialized by the value of the variable
+:variable:`CMAKE_BUILD_RPATH` if it is set when a target is created.