CHIA-3718 Handle building chiavdf for MacOS when CMake is already installed (#20018)

Handle building chiavdf for MacOS when CMake is already installed.
This commit is contained in:
Amine Khaldi
2025-09-02 09:24:44 -05:00
committed by GitHub
parent 5184258f4a
commit 061d588bca
+4 -1
View File
@@ -113,8 +113,11 @@ else
symlink_vdf_bench "$PYTHON_VERSION"
elif [ -e venv/bin/python ] && test "$MACOS"; then
echo "Installing chiavdf dependencies for MacOS."
if ! cmake --version >/dev/null 2>&1; then
brew install --formula --quiet cmake
fi
# The most recent boost version causes compile errors.
brew install --formula --quiet boost@1.85 cmake gmp
brew install --formula --quiet boost@1.85 gmp
# boost@1.85 is keg-only, which means it was not symlinked into /usr/local,
# because this is an alternate version of another formula.
export LDFLAGS="-L/usr/local/opt/boost@1.85/lib"