From 12e50021f4b53a548f616d6d90b0f3acdbbc2d5d Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 29 Aug 2022 17:34:44 +0400 Subject: [PATCH] Check whether cmake is installed already (#12799) --- install_build_dependencies.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install_build_dependencies.sh b/install_build_dependencies.sh index ad12ba00085..4066be26b9e 100755 --- a/install_build_dependencies.sh +++ b/install_build_dependencies.sh @@ -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 \