Skip to content

Instantly share code, notes, and snippets.

@OlivierLDff
Created October 9, 2020 11:40
Show Gist options
  • Save OlivierLDff/3b4f6e65bc95d0271c49bdc27feb96c1 to your computer and use it in GitHub Desktop.
Save OlivierLDff/3b4f6e65bc95d0271c49bdc27feb96c1 to your computer and use it in GitHub Desktop.
Docker : Build cmake
# Build cool cmake version
ARG CMAKE=3.18.4
RUN wget -c -nv https://github.com/Kitware/CMake/releases/download/v${CMAKE}/cmake-${CMAKE}.tar.gz && \
tar zxvf cmake-${CMAKE}.tar.gz && \
rm -rf cmake-${CMAKE}.tar.gz && \
cd cmake-${CMAKE} && \
./configure && \
make -j $(nproc) && \
make install && \
cd .. && \
rm -rf cmake-${CMAKE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment