]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: require CMake v3.16
authorKefu Chai <kchai@redhat.com>
Mon, 19 Jul 2021 04:55:57 +0000 (12:55 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 19 Jul 2021 05:16:49 +0000 (13:16 +0800)
commitf2f7dfbdab01eb14ca64e39fd3b2e63c46852293
tree97668dc35b051228d06b04c977bea77a3420f9c8
parent43d0e2c21852e732c1d19c93a104de3b5b8314d7
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 <kchai@redhat.com>
CMakeLists.txt