]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: bump minimum required CMake version to 3.22.1
authorKefu Chai <tchaikov@gmail.com>
Sun, 8 Jun 2025 08:24:51 +0000 (16:24 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 13 Jun 2025 08:23:49 +0000 (16:23 +0800)
commit469d82a1f387f342797636fdfff84f570b22f928
tree9ff0c713bf4b650501a823e20a21caeec494863b
parent8886bdd95387bba8c9fcfe0e2550c5eb430d2a69
cmake: bump minimum required CMake version to 3.22.1

Bump the minimum required CMake version from 3.5 to 3.22.1 in both
Ceph and embedded dmclock to address deprecation warnings.

CMake 4.0.2 generates deprecation warnings for projects requiring
versions below 3.10:

```
CMake Deprecation Warning at src/dmclock/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.
```

The upstream CI workflow uses Ubuntu 22.04 (CMake 3.22.1) and CentOS 9
(CMake 3.26.5), so bumping to 3.22.1 maintains compatibility with our
supported build environments while enabling access to newer CMake
features.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
CMakeLists.txt
src/dmclock/CMakeLists.txt