Skip to content

Commit

Permalink
Added cmake-stamp
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Nov 22, 2024
1 parent 9a9d127 commit 20ecf38
Showing 1 changed file with 13 additions and 4 deletions.
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

0 comments on commit 20ecf38

Please sign in to comment.