81 | @@ -82,13 +82,16 @@ set(CLIENT_BUGREPORT "https://github.com/bitcoin/bitcoin/issues")
82 | #=============================
83 | # Language setup
84 | #=============================
85 | -if(CMAKE_VERSION VERSION_LESS 4.2 AND CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT CMAKE_HOST_APPLE)
86 | +if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT CMAKE_HOST_APPLE)
87 | # We do not use the install_name_tool when cross-compiling for macOS.
88 | - # However, CMake < 4.2 still searches for Apple's version of the tool,
I don't think we need to add even more explanation and more links. Could just be something like:
We do not use the install_name_tool when cross-compiling for macOS.
However, CMake still searches for it, which causes an error during configuration.
So disable this tool check in further enable_language() commands.
See: https://gitlab.kitware.com/cmake/cmake/-/work_items/28341
? and we can clean all this up once CMake fixes it properly, looks like that might be after 4.6.0?
Thanks! The explanatory comment has been reworded.