Parameterize the cmake version.

This commit is contained in:
Brenden Matthews 2023-01-01 17:35:15 -05:00
parent 98b70966eb
commit 2f4ce1e4de
No known key found for this signature in database
GPG Key ID: B49ABB7270D9D4FD
1 changed files with 4 additions and 3 deletions

View File

@ -47,9 +47,10 @@ RUN apt-get update \
# Compile CMake, we need the latest because the bug here (for armv7 builds):
# https://gitlab.kitware.com/cmake/cmake/-/issues/20568
WORKDIR /cmake
RUN curl -Lq https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1.tar.gz -o cmake-3.25.1.tar.gz \
&& tar xf cmake-3.25.1.tar.gz \
&& cd cmake-3.25.1 \
ENV CMAKE_VERSION 3.25.1
RUN curl -Lq https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz -o cmake-${CMAKE_VERSION}.tar.gz \
&& tar xf cmake-${CMAKE_VERSION}.tar.gz \
&& cd cmake-${CMAKE_VERSION} \
&& CC=clang CXX=clang++ CFLAGS="-D_FILE_OFFSET_BITS=64" CXXFLAGS="-D_FILE_OFFSET_BITS=64" ./bootstrap --system-libs --parallel=5 \
&& make -j5 \
&& make -j5 install \