Use modern FetchContent design patterns (#3903)

* Add higher bound to the CMake policies
* Add the latest cmake to ubuntu22.04 image
This commit is contained in:
Cristian Le 2025-07-09 03:39:54 +02:00 committed by GitHub
parent c639cc030d
commit 236b57f321
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 61 additions and 12 deletions

View file

@ -1,7 +1,14 @@
FROM ubuntu:22.04
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install -y gpg wget curl
# add Kitware's CMake apt repo
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - > /usr/share/keyrings/kitware-archive-keyring.gpg && \
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' > /etc/apt/sources.list.d/kitware.list
RUN apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y build-essential cmake git uuid-dev faketime locales python3 curl
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y build-essential git uuid-dev faketime locales python3 cmake
# Setup language environment
RUN locale-gen en_US.UTF-8