Skip to content

Commit 58cad1c

Browse files
authored
CHIA-3718 Handle building chiavdf for MacOS when CMake is already installed (#20018) (#20032)
1 parent c62ff47 commit 58cad1c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install-timelord.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,11 @@ else
113113
symlink_vdf_bench "$PYTHON_VERSION"
114114
elif [ -e venv/bin/python ] && test "$MACOS"; then
115115
echo "Installing chiavdf dependencies for MacOS."
116+
if ! cmake --version >/dev/null 2>&1; then
117+
brew install --formula --quiet cmake
118+
fi
116119
# The most recent boost version causes compile errors.
117-
brew install --formula --quiet [email protected] cmake gmp
120+
brew install --formula --quiet [email protected] gmp
118121
# [email protected] is keg-only, which means it was not symlinked into /usr/local,
119122
# because this is an alternate version of another formula.
120123
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"

0 commit comments

Comments
 (0)