Parameterize the cmake version.
This commit is contained in:
parent
98b70966eb
commit
2f4ce1e4de
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue