Skip to content

Commit

Permalink
fix: install cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-stoian-zama committed Dec 6, 2024
1 parent 7ca68a8 commit 97ae516
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions script/make_utils/setup_os_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,22 @@ linux_install_github_cli () {
}

linux_install_cmake () {
sudo apt-get update
sudo apt-get -y install ca-certificates gpg wget
${SUDO_BIN:+$SUDO_BIN} apt-get update
${SUDO_BIN:+$SUDO_BIN} apt-get -y install ca-certificates gpg wget
test -f /usr/share/doc/kitware-archive-keyring/copyright ||
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
sudo apt-get update
test -f /usr/share/doc/kitware-archive-keyring/copyright || sudo rm /usr/share/keyrings/kitware-archive-keyring.gpg
sudo apt-get install -y kitware-archive-keyring
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal-rc main' | sudo tee -a /etc/apt/sources.list.d/kitware.list >/dev/null
sudo apt-get update
sudo apt-get -y install cmake
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | \
gpg --dearmor - | \
${SUDO_BIN:+$SUDO_BIN} tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | \
${SUDO_BIN:+$SUDO_BIN} tee /etc/apt/sources.list.d/kitware.list >/dev/null
${SUDO_BIN:+$SUDO_BIN} apt-get update
test -f /usr/share/doc/kitware-archive-keyring/copyright || \
${SUDO_BIN:+$SUDO_BIN} rm /usr/share/keyrings/kitware-archive-keyring.gpg
${SUDO_BIN:+$SUDO_BIN} apt-get install -y kitware-archive-keyring
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal-rc main' | \
${SUDO_BIN:+$SUDO_BIN} tee -a /etc/apt/sources.list.d/kitware.list >/dev/null
${SUDO_BIN:+$SUDO_BIN} apt-get update
${SUDO_BIN:+$SUDO_BIN} apt-get -y install cmake
}

OS_NAME=$(uname)
Expand Down

0 comments on commit 97ae516

Please sign in to comment.