mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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
This commit is contained in:
8
Help/release/dev/relative-rpath.rst
Normal file
8
Help/release/dev/relative-rpath.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
relative-rpath
|
||||
--------------
|
||||
|
||||
* A :variable:`CMAKE_BUILD_RPATH_USE_ORIGIN` variable and corresponding
|
||||
:prop_tgt:`BUILD_RPATH_USE_ORIGIN` target property were added to
|
||||
enable use of relative runtime paths (RPATHs). This helps achieving
|
||||
relocatable and reproducible builds that are invariant of the build
|
||||
directory.
|
||||
Reference in New Issue
Block a user