From: Kefu Chai Date: Thu, 4 Apr 2019 03:44:56 +0000 (+0800) Subject: cmake: check for libpython of the same version of interpreter X-Git-Tag: v14.2.1~84^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b465e953deaf93dbed4c1beac17a52fe852c4bde;p=ceph.git cmake: check for libpython of the same version of interpreter actually cython or python3-cython's dependencies should take care of it. but we should at least get it right on our side if we check it. Signed-off-by: Kefu Chai (cherry picked from commit c961e002d22ab7ceec20f1019f8c558ec9fcce6c) --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ba96954e87f8..69ac1c761f2b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -229,7 +229,7 @@ if(WITH_PYTHON3) set(WITH_PYTHON3 "3") endif() find_package(Python3Interp ${WITH_PYTHON3} REQUIRED) - find_package(Python3Libs ${WITH_PYTHON3} REQUIRED) + find_package(Python3Libs ${PYTHON_VERSION_STRING} REQUIRED) endif() # the major version of the python bindings as a dependency of other