diff options
author | Peter Wu <peter@lekensteyn.nl> | 2018-10-07 19:58:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-26 13:25:51 (GMT) |
commit | 6114d85a7db0571bfade96a710f34a01bb2037c8 (patch) | |
tree | 6ce358b1f2cab1fbe0716a53546663e584565b77 /Help/variable | |
parent | bba42bb91e25a35791e71461858403360192778b (diff) | |
download | CMake-6114d85a7db0571bfade96a710f34a01bb2037c8.zip CMake-6114d85a7db0571bfade96a710f34a01bb2037c8.tar.gz CMake-6114d85a7db0571bfade96a710f34a01bb2037c8.tar.bz2 |
RPATH: Add option for using $ORIGIN in build tree
This makes binaries independent of the build directory by not embedding
the build directory via RPATH. The tests are partially based on the
existing RuntimePath test, but with the check moved into a POST_BUILD
command such that it can be skipped when the platform lacks support.
Fixes: #18413
Diffstat (limited to 'Help/variable')
-rw-r--r-- | Help/variable/CMAKE_BUILD_RPATH_USE_ORIGIN.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_BUILD_RPATH_USE_ORIGIN.rst b/Help/variable/CMAKE_BUILD_RPATH_USE_ORIGIN.rst new file mode 100644 index 0000000..e34ede6 --- /dev/null +++ b/Help/variable/CMAKE_BUILD_RPATH_USE_ORIGIN.rst @@ -0,0 +1,7 @@ +CMAKE_BUILD_RPATH_USE_ORIGIN +---------------------------- + +Whether to use relative paths for the build ``RPATH``. + +This is used to initialize the :prop_tgt:`BUILD_RPATH_USE_ORIGIN` target +property for all targets, see that property for more details. |