From 92e158e208eb0fe10da16d342b6f117a9208570e Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Tue, 2 Sep 2025 15:24:44 +0100 Subject: [PATCH] CHIA-3718 Handle building chiavdf for MacOS when CMake is already installed (#20018) Handle building chiavdf for MacOS when CMake is already installed. (cherry picked from commit 061d588bcaed3a20ab00fa440d528de50ee1b2db) --- install-timelord.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install-timelord.sh b/install-timelord.sh index 1cf12deba1f5..35583f06c447 100755 --- a/install-timelord.sh +++ b/install-timelord.sh @@ -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"