Skip to content

Commit bea6084

Browse files
committed
install cmake 3.22 on bullseye
1 parent 1fea225 commit bea6084

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

ci/cloudbuild/dockerfiles/demo-debian-bullseye.Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@ ARG NCPU=4
2222
# ```bash
2323
RUN apt-get update && \
2424
apt-get --no-install-recommends install -y apt-transport-https apt-utils \
25-
automake build-essential ca-certificates cmake curl git \
25+
automake build-essential ca-certificates curl git \
2626
gcc g++ libc-ares-dev libc-ares2 libcurl4-openssl-dev \
2727
libssl-dev m4 make ninja-build pkg-config tar wget zlib1g-dev
2828
# ```
2929

30+
# #### Install CMake v3.22
31+
WORKDIR /var/tmp/build/cmake
32+
RUN curl -fsSL https://github.com/Kitware/cmake/archive/v3.22.3.tar.gz | \
33+
tar -xzf - --strip-components=1 && \
34+
./bootstrap && make -j ${NCPU:-4} && make install
35+
3036
# #### Abseil
3137

3238
# ```bash

doc/packaging.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,11 +790,18 @@ Install the minimal development tools, libcurl, and OpenSSL:
790790
```bash
791791
sudo apt-get update && \
792792
sudo apt-get --no-install-recommends install -y apt-transport-https apt-utils \
793-
automake build-essential ca-certificates cmake curl git \
793+
automake build-essential ca-certificates curl git \
794794
gcc g++ libc-ares-dev libc-ares2 libcurl4-openssl-dev \
795795
libssl-dev m4 make ninja-build pkg-config tar wget zlib1g-dev
796796
```
797797

798+
#### Install CMake v3.22
799+
800+
mkdir -p $HOME/Downloads/cmake && cd $HOME/Downloads/cmake curl -fsSL
801+
https://github.com/Kitware/cmake/archive/v3.22.3.tar.gz | \
802+
tar -xzf - --strip-components=1 && \
803+
./bootstrap && make -j ${NCPU:-4} && sudo make install
804+
798805
#### Abseil
799806

800807
```bash

0 commit comments

Comments
 (0)