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