From f20becb7255494e74f0f735cdd2912a3e5ba51b7 Mon Sep 17 00:00:00 2001 From: Alexander Guzhva Date: Tue, 21 May 2024 23:15:39 -0400 Subject: [PATCH] fix: Download and install cmake for the current platform, not x86_64 only (#32548) issue #32476 tested on x86_64 and aarch64. I'm not sure what needs to be done on some exotic architectures. Signed-off-by: Alexandr Guzhva --- scripts/install_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh index 8ae371aa2a..38f1e1f294 100755 --- a/scripts/install_deps.sh +++ b/scripts/install_deps.sh @@ -48,7 +48,7 @@ function install_linux_deps() { cmake_version=$(echo "$(cmake --version | head -1)" | grep -o '[0-9][\.][0-9]*') if [ ! $cmake_version ] || [ `expr $cmake_version \>= 3.26` -eq 0 ]; then echo "cmake version $cmake_version is less than 3.26, wait to installing ..." - wget -qO- "https://cmake.org/files/v3.26/cmake-3.26.5-linux-x86_64.tar.gz" | sudo tar --strip-components=1 -xz -C /usr/local + wget -qO- "https://cmake.org/files/v3.26/cmake-3.26.5-linux-$(uname -m).tar.gz" | sudo tar --strip-components=1 -xz -C /usr/local else echo "cmake version is $cmake_version" fi