Skip to content

Commit 7ed8d23

Browse files
committed
Install CMake 4.0.3
1 parent 4d95431 commit 7ed8d23

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,21 @@ RUN wget https://ftp.gnu.org/gnu/make/make-4.4.1.tar.gz && \
3434
tar -xzf make-4.4.1.tar.gz && \
3535
cd make-4.4.1 && \
3636
./configure --prefix=/usr/local && \
37-
make && \
37+
make -j$(nproc) && \
3838
make install && \
3939
cd .. && \
4040
rm -rf make-4.4.1 make-4.4.1.tar.gz
4141

42+
# Install CMake 4.0.3
43+
RUN wget https://github.com/Kitware/CMake/releases/download/v4.0.3/cmake-4.0.3.tar.gz && \
44+
tar -xzf cmake-4.0.3.tar.gz && \
45+
cd cmake-4.0.3 && \
46+
./bootstrap --prefix=/usr/local && \
47+
make -j$(nproc) && \
48+
make install && \
49+
cd .. && \
50+
rm -rf cmake-4.0.3 cmake-4.0.3.tar.gz
51+
4252
# Set working directory
4353
WORKDIR /usr/src
4454

@@ -97,7 +107,7 @@ RUN cmake \
97107
..
98108

99109
# Make install and clean up
100-
RUN make -j4 install && \
110+
RUN make -j$(nproc) install && \
101111
make python-install && \
102112
make clean
103113

0 commit comments

Comments
 (0)