]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: check for libpython of the same version of interpreter
authorKefu Chai <kchai@redhat.com>
Thu, 4 Apr 2019 03:44:56 +0000 (11:44 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 11 Jun 2019 15:44:22 +0000 (23:44 +0800)
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 <kchai@redhat.com>
(cherry picked from commit c961e002d22ab7ceec20f1019f8c558ec9fcce6c)

src/CMakeLists.txt

index aab44d87ac9aac7d584bcacc71920a73d4cce734..0f09f8160d8cd5930718d8f8536066adf341ebd8 100644 (file)
@@ -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)