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: v12.2.13~255^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fbd8c47113a2c761a1473c29c1d90050ae7af7ea;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 aab44d87ac9a..0f09f8160d8c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -253,7 +253,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() if(HAVE_XIO)