When cross-compiling for macOS on Linux, the configuration step fails when using the Ninja generator:
$ gmake -j $(nproc) -C depends HOST=x86_64-apple-darwin NO_QT=1
$ cmake -B build -G Ninja --toolchain depends/x86_64-apple-darwin/toolchain.cmake
<snip>
CMake Error at src/CMakeLists.txt:301 (add_executable):
The install of the bitcoind target requires changing an RPATH from the
build tree, but this is not supported with the Ninja generator unless on an
ELF-based or XCOFF-based platform. The CMAKE_BUILD_WITH_INSTALL_RPATH
variable may be set to avoid this relinking step.
<snip>
This behavior is observed with CMake starting from version 4.1.0.
This issue does not occur when building with depends on macOS.