mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-29 05:05:41 +02:00
8800b5acc1
cmake: Explicitly specify `Boost_ROOT` for Homebrew's package (Hennadii Stepanov) Pull request description: On macOS, this PR ensures that the Boost package is located at its real path rather than via the symlink in the default prefix. A backport to 29.x is required for https://github.com/bitcoin/bitcoin/pull/32804, as this change prevents contamination of include directories by broad locations such as `/usr/local/include` or `/opt/homebrew/include`, which take precedence over Qt’s `-iframework` flags. Below is the relevant change in the configuration logs on my macOS 15.5 `x64`: - master branch @ead4468748
: ``` % cmake -B build <snip> -- Found Boost: /usr/local/include (found suitable version "1.88.0", minimum required is "1.73.0") <snip> ``` - this PR: ``` % cmake -B build <snip> -- Found Boost: /usr/local/opt/boost/include (found suitable version "1.88.0", minimum required is "1.73.0") <snip> ``` This PR is forward-compatible with the changes proposed in https://github.com/bitcoin/bitcoin/pull/32667. ACKs for top commit: fanquake: ACK8800b5acc1
Checked that this plus #32805 fixes #31009 Tree-SHA512: 114bd945ec0c06a8d15b565e5b9aafc3bcfdf2a4ba4400e072b8e31053dff0f9ef423b941ee1dff2113f83e08f7fada728383ae88b3ec380b5c3e40553205f7d