Skip to content

Commit 51b1e01

Browse files
committed
Only update to CMake minimum to 3.5 turn on all policies up to CMake 3.31
1 parent a275047 commit 51b1e01

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/docker_images/gcc-4.8/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ COPY entry.sh /
1010

1111
WORKDIR /
1212

13-
RUN curl -LOk "https://github.com/Kitware/CMake/releases/download/v3.9.6/cmake-3.9.6-Linux-x86_64.tar.gz"
14-
RUN sha256sum cmake-3.9.6-Linux-x86_64.tar.gz | grep -q "062bf45bee36ce7c2a55ae26b8b5324720f370d420a05cba91b9448c64ffdbea"
15-
RUN tar -C /usr/local -xzf cmake-3.9.6-Linux-x86_64.tar.gz
16-
RUN rm cmake-3.9.6-Linux-x86_64.tar.gz
13+
RUN curl -LOk "https://github.com/Kitware/CMake/releases/download/v3.6.3/cmake-3.6.3-Linux-x86_64.tar.gz"
14+
RUN sha256sum cmake-3.6.3-Linux-x86_64.tar.gz | grep -q "9d915d505c07d84b610e1be6242c7cad68b4b7a4090ce85ecf9cec5effa47c43"
15+
RUN tar -C /usr/local -xzf cmake-3.6.3-Linux-x86_64.tar.gz
16+
RUN rm cmake-3.6.3-Linux-x86_64.tar.gz
1717
RUN curl -LOk "https://go.dev/dl/go1.18.10.linux-amd64.tar.gz"
1818
RUN sha256sum go1.18.10.linux-amd64.tar.gz | grep -q "5e05400e4c79ef5394424c0eff5b9141cb782da25f64f79d54c98af0a37f8d49"
1919
RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.10.linux-amd64.tar.gz
2020
RUN rm go1.18.10.linux-amd64.tar.gz
2121

22-
ENV PATH="${PATH}:/usr/local/cmake-3.9.6-Linux-x86_64/bin:/usr/local/go/bin"
22+
ENV PATH="${PATH}:/usr/local/cmake-3.6.3-Linux-x86_64/bin:/usr/local/go/bin"
2323

2424
ENTRYPOINT ["/entry.sh"]

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
cmake:
21-
- { version: "3.9", url: "https://cmake.org/files/v3.9/cmake-3.9.6.tar.gz", hash: "7410851a783a41b521214ad987bb534a7e4a65e059651a2514e6ebfc8f46b218" }
21+
- { version: "3.5", url: "https://cmake.org/files/v3.5/cmake-3.5.0.tar.gz", hash: "92c83ad8a4fd6224cf6319a60b399854f55b38ebe9d297c942408b792b1a9efa" }
2222
- { version: "3.28", url: "https://cmake.org/files/v3.28/cmake-3.28.1.tar.gz", hash: "15e94f83e647f7d620a140a7a5da76349fc47a1bfed66d0f5cdee8e7344079ad" }
2323
generator:
2424
- "Unix Makefiles"

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.9)
1+
cmake_minimum_required(VERSION 3.5..3.31)
22

33
if(POLICY CMP0091)
44
cmake_policy(SET CMP0091 NEW)

0 commit comments

Comments
 (0)