Parameterize the cmake version.
This commit is contained in:
@@ -47,9 +47,10 @@ RUN apt-get update \
|
|||||||
# Compile CMake, we need the latest because the bug here (for armv7 builds):
|
# Compile CMake, we need the latest because the bug here (for armv7 builds):
|
||||||
# https://gitlab.kitware.com/cmake/cmake/-/issues/20568
|
# https://gitlab.kitware.com/cmake/cmake/-/issues/20568
|
||||||
WORKDIR /cmake
|
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 \
|
ENV CMAKE_VERSION 3.25.1
|
||||||
&& tar xf cmake-3.25.1.tar.gz \
|
RUN curl -Lq https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz -o cmake-${CMAKE_VERSION}.tar.gz \
|
||||||
&& cd cmake-3.25.1 \
|
&& 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 \
|
&& 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 \
|
||||||
&& make -j5 install \
|
&& make -j5 install \
|
||||||
|
Reference in New Issue
Block a user