CMAKE_MACOSX_RPATH

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


CMAKE_MACOSX_RPATH

Whether to use rpaths on macOS and iOS.

This variable is used to initialize the MACOSX_RPATH property on all targets.

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