From: Kefu Chai Date: Mon, 19 Jul 2021 04:55:57 +0000 (+0800) Subject: cmake: require CMake v3.16 X-Git-Tag: v17.1.0~1371^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f2f7dfbdab01eb14ca64e39fd3b2e63c46852293;p=ceph.git cmake: require CMake v3.16 since we dropped the support of bionic, we now have the luxury of using newer CMake! and by using CMake 3.16, we now have access to * add_compile_definitions(), which was introduced in cmake 3.12 also, drop the comment of > remove cmake/modules/FindPython* once 3.12 is required because we need to support python 3.10 in future, better off keeping the FindPython files around, so we can backport cmake changes from upstream when necessary. we are allowed to bump up the CMake's required to 3.16, because: - ubuntu focal ships with cmake 3.16.3 - RHEL/CentOS8's AppStream has cmake 3.18 Signed-off-by: Kefu Chai --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d6ad17bbf844..6c6f647bd50e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,4 @@ -cmake_minimum_required(VERSION 3.10.2) -# remove cmake/modules/FindPython* once 3.12 is required +cmake_minimum_required(VERSION 3.16) project(ceph VERSION 17.0.0