mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-22 04:38:55 +02:00
38a7a67126cmake: Provide `install_name_tool` stub instead of disabling it (Hennadii Stepanov)80dc4359b8cmake: Apply workaround for `install_name_tool` conditionally (Hennadii Stepanov) Pull request description: We stopped using `install_name_tool` in3bee51427a(https://github.com/bitcoin/bitcoin/pull/29890), which [required](https://github.com/hebasto/bitcoin/pull/180) a CMake-specific hack:b65ff0e5a1/CMakeLists.txt (L72-L76)Due to recent changes in CMake, this hack has become problematic for the following reasons: 1. It is no longer needed when using CMake 4.2 or newer. See upstream [Issue #27069](https://gitlab.kitware.com/cmake/cmake/-/issues/27069) and [MR #10955](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/10955). 2. It causes an [issue](https://github.com/bitcoin/bitcoin/issues/34513) when using CMake 4.0.5 or newer. See upstream [Issue #26814](https://gitlab.kitware.com/cmake/cmake/-/issues/26814) and [MR #10721](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/10721). This PR addresses both of these issues. Please see the individual commits for more details. Fixes https://github.com/bitcoin/bitcoin/issues/34513. ACKs for top commit: fanquake: ACK38a7a67126Tree-SHA512: 7a11aa5b7f72034c798f20043ae89aa6c125bf5adf9c808a469aa30c2a56ad0a7aaf69919cb40a9eec08e029915890685968a9b7d5998e1337810f9cd2f6caf2
29 KiB
29 KiB