Add paths to linker search and installed rpath.
CMAKE_INSTALL_RPATH_USE_LINK_PATH
is a boolean that if set to True
will append to the runtime search path (rpath) of installed binaries any directories outside the project that are in the linker search path or contain linked library files. The directories are appended after the value of the INSTALL_RPATH
target property.
This variable is used to initialize the target property INSTALL_RPATH_USE_LINK_PATH
for all targets.
© 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.19/variable/CMAKE_INSTALL_RPATH_USE_LINK_PATH.html