diff --git a/yoda.sh b/yoda.sh index 3e1046e3f6..f98c232819 100644 --- a/yoda.sh +++ b/yoda.sh @@ -21,7 +21,15 @@ rsync -a --exclude='**/.git' --delete --delete-excluded "$SOURCEDIR"/ ./ export PYTHON=$(type -p python3) -./configure --disable-silent-rules --enable-root --prefix="$INSTALLROOT" --with-hdf5="$HDF5_ROOT" +case $ARCHITECTURE in + osx*) + # If we preferred system tools, we need to make sure we can pick them up. + [[ ! $HDF5_ROOT ]] && HDF5_ROOT="$(brew --prefix hdf5)" + ;; + *) ;; +esac + +./configure --disable-silent-rules --enable-root --prefix="$INSTALLROOT" ${HDF5_ROOT:+--with-hdf5=$HDF5_ROOT} make ${JOBS+-j $JOBS} make install