ceph/cmake/modules
Kefu Chai 27c05edc8e cmake: update FindPython3 module
* use the one shiped by the latest CMake (ab379e5054aa792df9572078dcf95bddd75f7661)
* use the new policy to use the new find strategy.
* accomodate the vanilla FindPython3 module to Ceph by:
  - dropping the `cmake_policy()` calls which set the policy not supported
    by 3.16.
  - `include (FindPackageHandleStandardArgs)` without specifying the
    relative path.
  - dropping the `HANDLE_VERSION_RANGE` from `FindPackageHandleStandardArgs()` call.
    this option was introduced by CMake v3.19, see
    https://cmake.org/cmake/help/latest/module/FindPackageHandleStandardArgs.html
    but Ubuntu focal comes with CMake 3.16, which is our minimal required CMake version.

the new FindPython3 module from CMake:

* enables us to find the recent Python intepreter and development files up to
  CPython 3.13.
* finds Python intepreter with the new `Python_FIND_STRATEGY`. the old and
  default strategy always finds the most recent version with all specified name
  and in all locations. so, if /usr/bin/python exists, it would accept, even
  if it is a symlink to python3.9 and what we want is python3.6. the
  new policy stops at the one which satisfies the constraints. this
  helps us to address the problem of issue we have when recreating
  the building system after the CMakeLists.txt is updated.

Fixes: https://tracker.ceph.com/issues/62428
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2023-08-17 10:24:16 +08:00
..
FindPython cmake: update FindPython3 module 2023-08-17 10:24:16 +08:00
AddCephTest.cmake ceph-mixin: fix PATH issues with jsonnet-bundler 2022-08-18 13:43:34 +02:00
BuildArrow.cmake rgw: allow Arrow Flight to be built and linked into ceph components 2022-12-15 12:49:35 -05:00
BuildBoost.cmake build: Bump boost to 1.82 2023-07-05 15:45:07 -04:00
Buildc-ares.cmake cmake: s/c-ares::c-ares/c-ares::cares/ 2022-11-22 01:17:30 +08:00
BuildDPDK.cmake cmake: pass RTE_DEVEL_BUILD=n when building dpdk 2022-03-05 12:57:24 +08:00
BuildFIO.cmake cmake/modules/BuildFIO: specify the full path to alloc libraries 2022-05-02 12:40:55 +08:00
BuildOpentelemetry.cmake cmake: remove git fetch and use submodule for building opentelemetry lib 2022-06-22 01:06:33 +00:00
Buildpmdk.cmake cmake: disable LTO when building pmdk 2022-08-04 17:56:48 +08:00
BuildRocksDB.cmake
BuildSPDK.cmake
BuildUBBD.cmake tools/rbd: add support of new device type for ubbd 2023-05-18 12:35:39 +00:00
Builduring.cmake
BuildUtf8proc.cmake cmake: add submodule for utf8proc at v2.2.0 2022-03-14 10:19:02 -04:00
BuildZstd.cmake
CephCheck_link.c
CephCheck_link.map
CephChecks.cmake
CheckCxxAtomic.cmake build: fix atomic linking with LTO on s390x 2022-07-18 15:19:02 -04:00
CheckNasm.cmake
CTags.cmake
Distutils.cmake cmake: remove spaces in macro used for compiling cython code 2022-08-05 20:07:02 +08:00
Findaio.cmake
FindArrow.cmake cmake: move Arrow targets into find_package modules 2022-03-14 10:19:02 -04:00
Findbabeltrace.cmake
FindBacktrace.cmake
Findblkid.cmake
FindBoost.cmake build: Bump boost to 1.82 2023-07-05 15:45:07 -04:00
Findc-ares.cmake rgw: allow Arrow Flight to be built and linked into ceph components 2022-12-15 12:49:35 -05:00
FindCUnit.cmake
FindCython.cmake
FindDAOS.cmake rgw: add DAOS SAL implementation 2022-09-07 12:19:41 -04:00
Finddaxctl.cmake cmake: add findndctl and finddaxctl function 2022-07-12 10:32:57 +08:00
Finddml.cmake Add the support to use DML library for PMEM device. 2022-04-19 14:51:12 +08:00
Finddpdk.cmake
Findfmt.cmake
FindFUSE.cmake
FindGMock.cmake
Findgperftools.cmake
FindGSSApi.cmake
FindJeMalloc.cmake
Findkeyutils.cmake
Findlibcryptsetup.cmake
FindLinuxZNS.cmake
FindLTTngUST.cmake
FindLZ4.cmake
FindMake.cmake
Findmotr.cmake cmake: find motr libraries and header before using them 2022-08-10 21:15:12 +08:00
Findndctl.cmake cmake: add findndctl and finddaxctl function 2022-07-12 10:32:57 +08:00
Findnl.cmake
FindNUMA.cmake
FindOATH.cmake
FindOpenLDAP.cmake
FindParquet.cmake cmake: move Arrow targets into find_package modules 2022-03-14 10:19:02 -04:00
Findpmdk.cmake cmake: rename a series of pmem libraries to pmdk 2022-06-28 01:16:33 +08:00
FindPython3.cmake cmake: update FindPython3 module 2023-08-17 10:16:45 +08:00
FindQatDrv.cmake
Findqatzip.cmake
FindRabbitMQ.cmake
FindRDKafka.cmake
Findrdmacm.cmake
FindRocksDB.cmake
FindSanitizers.cmake cmake: update FindSanitizers for new libasan versions 2023-03-07 13:33:57 -05:00
Findsnappy.cmake
FindSQLite3.cmake
FindStdFilesystem_test.cc
FindStdFilesystem.cmake
Findthrift.cmake
Findudev.cmake
Finduring.cmake
Findutf8proc.cmake cmake: add submodule for utf8proc at v2.2.0 2022-03-14 10:19:02 -04:00
Finduuid.cmake
Findverbs.cmake
Findxfs.cmake
Findyaml-cpp.cmake
Findzbd.cmake
Findzfs.cmake
FindZstd.cmake
GetGitRevisionDescription.cmake
GetGitRevisionDescription.cmake.in
LimitJobs.cmake
patch-dpdk-conf.sh
SIMDExt.cmake