]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake/modules: always use the python3 specified in command line 45916/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 16 Apr 2022 01:10:20 +0000 (09:10 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 16 Apr 2022 01:15:03 +0000 (09:15 +0800)
commite2babdfae8c99f39f99a7c8a8f966299b2e62b19
treee4d305be92dc1917919fff954cf9f7cac3a2aa3d
parent5360de431dbe3ec7a4b66b1532773789ec249a2f
cmake/modules: always use the python3 specified in command line

if another python3 with higher version is found by
find_package(Python3), the cmake's install script would just
install the python modules/extensions into that python3's
dist-package directory, and the packaging script would fail
to find these artifacts when trying to package them.

so we need to ensure that the install directories for python
modeules/extensions are always "versioned" with WITH_PYTHON3
cmake option.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
cmake/modules/Distutils.cmake