]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: bump minimum required CMake version to 3.22.1 63795/head
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)
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

index fb1a9f07212e9112233c356f7430080c308e5a41..fde3fed781a375b7aca7842790f03d6accdb27ad 100644 (file)
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.16)
+cmake_minimum_required(VERSION 3.22.1)
 
 project(ceph
   VERSION 20.0.0
index 049ea5e312945b476b7ce926c79706c4fa73579a..52742e846f8afbebd8d9033af9dfa62348e17f9c 100644 (file)
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5.1)
+cmake_minimum_required(VERSION 3.22.1)
 
 project(dmclock CXX)