From: Kefu Chai Date: Sun, 8 Jun 2025 08:24:51 +0000 (+0800) Subject: cmake: bump minimum required CMake version to 3.22.1 X-Git-Tag: testing/wip-rishabh-testing-20250617.173904~28^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=469d82a1f387f342797636fdfff84f570b22f928;p=ceph-ci.git 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 value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index fb1a9f07212..fde3fed781a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.22.1) project(ceph VERSION 20.0.0 diff --git a/src/dmclock/CMakeLists.txt b/src/dmclock/CMakeLists.txt index 049ea5e3129..52742e846f8 100644 --- a/src/dmclock/CMakeLists.txt +++ b/src/dmclock/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5.1) +cmake_minimum_required(VERSION 3.22.1) project(dmclock CXX)