New in version 3.8.
A semicolon-separated list specifying
runtime path (
RPATH) entries to add to binaries linked in the
build tree (for platforms that support it). By default, CMake sets
the runtime path of binaries in the build tree to contain search
paths it knows are needed to find the shared libraries they link.
Projects may set
BUILD_RPATH to specify additional search paths.
The build-tree runtime path will not be used for binaries in the
install tree. It will be replaced with the install-tree runtime path
during the installation step. See also the
This property is initialized by the value of the variable
CMAKE_BUILD_RPATH if it is set when a target is created.
This property supports
Other settings that affect the build-tree runtime path include:
CMAKE_SKIP_RPATHvariable completely disables runtime paths in both the build tree and install tree.
SKIP_BUILD_RPATHtarget property disables setting any runtime path in the build tree.
BUILD_RPATH_USE_ORIGINtarget property causes the automatically-generated runtime path to use entries relative to
BUILD_WITH_INSTALL_RPATHtarget property causes binaries in the build tree to be built with the install-tree runtime path.