Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions library_builders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,29 @@ function get_modern_cmake {
# Install cmake >= 2.8
local cmake=cmake
if [ -n "$IS_MACOS" ]; then
brew install cmake > /dev/null
if [ ! -e cmake-stamp ]; then
brew install cmake > /dev/null
fi
elif [ -n "$IS_ALPINE" ]; then
apk add cmake > /dev/null
if [ ! -e cmake-stamp ]; then
apk add cmake > /dev/null
fi
elif [[ $MB_ML_VER == "_2_24" ]]; then
# debian:9 based distro
apt-get install -y cmake
if [ ! -e cmake-stamp ]; then
apt-get install -y cmake
fi
else
if [ "`yum search cmake | grep ^cmake28\.`" ]; then
cmake=cmake28
fi
# centos based distro
yum_install $cmake > /dev/null
if [ ! -e cmake-stamp ]; then
yum_install $cmake > /dev/null
fi
fi
echo $cmake
touch cmake-stamp
}

function get_cmake {
Expand Down