Check whether cmake is installed already (#12799)

This commit is contained in:
Ilya Lavrenov 2022-08-29 17:34:44 +04:00 committed by GitHub
parent b54de48774
commit 12e50021f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -29,10 +29,14 @@ if [ -f /etc/lsb-release ]; then
x86_64_specific_packages=()
fi
if ! command -v cmake &> /dev/null; then
cmake_packages=(cmake)
fi
sudo -E apt update
sudo -E apt-get install -y \
build-essential \
cmake \
"${cmake_packages[@]}" \
ccache \
curl \
wget \