]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake/modules: use exact version of python3 when finding cython 45967/head
authorKefu Chai <tchaikov@gmail.com>
Wed, 20 Apr 2022 22:31:21 +0000 (06:31 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 21 Apr 2022 23:12:48 +0000 (07:12 +0800)
commit65549d41f2e29ddbadd9d8c9db8d1f595ca1b9f0
tree17c902f8bc316f78268fc4a527d9479e4c3a80b8
parent30e1e26928501966bf46c6e414efbade2d4c498a
cmake/modules: use exact version of python3 when finding cython

* CMakeLists.txt:
    always pass "EXACT" to find_package(Python3).
    because per cmake document, "EXACT" only takes effect when
    <Package>_FIND_VERSION_COUNT is greater than 1, where <Package>
    is "Python3". see also cmake/modules/FindPython/Support.cmake
* cmake/modules/AddCephTest.cmake:
    drop redundant find_package(Python3) calls. since Python3 is
    a mandatory requirement for building Ceph, we only need a
    single call of find_package(Python3..) in the top of the source
    tree. the only possible case to repeat it is to ensure that we
    have the correct version of Python3 used in following CMake
    script. but there is no need to repeat it if we just want to
    ensure that we have a python3 interpretor in place.
* cmake/modules/Distutils.cmake:
    always pass "EXACT" to find_package(Python3).
    we should always pass EXACT to find_package() when finding python3,
    this is a follow-up of e2babdfae8c99f39f99a7c8a8f966299b2e62b19

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit ea4ae6d2f17ae8dcfb3d6f215d53b3f82a99270d)

Conflicts:
cmake/modules/AddCephTest.cmake: trivial resolutions
CMakeLists.txt
cmake/modules/AddCephTest.cmake
cmake/modules/Distutils.cmake