Skip to content

Commit

Permalink
Put actual cmake minimum version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dextinfire committed Dec 26, 2024
1 parent 0397e14 commit b45f919
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.25)
cmake_minimum_required(VERSION 3.28)

project("impacto")

Expand Down
12 changes: 8 additions & 4 deletions docker/impacto-switch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ FROM devkitpro/toolchain-base

LABEL org.opencontainers.image.source https://github.com/committeeofzero/impacto

RUN echo "Updating CMAKE" && \
echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y cmake/bullseye-backports
# Install latest cmake
RUN echo "Removing older version of cmake" && \
apt remove --purge --auto-remove -y cmake
ADD https://github.com/Kitware/CMake/releases/download/v3.31.3/cmake-3.31.3-linux-x86_64.sh /cmake-3.31.3-linux-x86_64.sh
RUN mkdir /opt/cmake
RUN sh /cmake-3.31.3-linux-x86_64.sh --prefix=/opt/cmake --skip-license
RUN ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
RUN cmake --version

RUN dkp-pacman -Syyu --noconfirm && \
dkp-pacman -S --needed --noconfirm switch-dev && \
Expand Down

0 comments on commit b45f919

Please sign in to comment.