CMAKE_BUILD_RPATH

From Get docs
Cmake/docs/3.21/variable/cmake build rpath


CMAKE_BUILD_RPATH

New in version 3.8.


Semicolon-separated list 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 CMAKE_INSTALL_RPATH variable.

This is used to initialize the BUILD_RPATH target property for all targets.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_BUILD_RPATH.html