]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: check for python(\d)\.(\d+) when building boost 46365/head
authorKefu Chai <tchaikov@gmail.com>
Thu, 18 Nov 2021 16:18:13 +0000 (00:18 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 23 May 2022 11:17:57 +0000 (19:17 +0800)
commit2ac509ce9dbb8201a349b46bafbb642a455c54c2
tree1840bfb88de6649b8c3eee2ac61aa52a9a52a291
parentd4b4a97aa211c051cf6c80bc571240db30f3c104
cmake: check for python(\d)\.(\d+) when building boost

now that python3.10 has two digits as its minor version, we should be
able to match it.

this change fixes the build with python3.10. without this change, we'd
have

error: wrong library name 'python310' in the --with-<library> option.

when building with python3.10

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 66b1e8cecdbabd76a131dc239f6f41d5374fbd32)
cmake/modules/BuildBoost.cmake