From 80bdb571ffb38436b4f116f3b6403f5a5bff01f9 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Tue, 2 Sep 2025 12:05:06 +0100 Subject: [PATCH] Handle building chiavdf for MacOS when CMake is already installed. --- 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"