]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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>
Thu, 4 Apr 2019 05:30:48 +0000 (13:30 +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>
src/CMakeLists.txt

index 93a5ccc7e6b1943912283e1df33e7c703ac00962..70492192637f989dc8881436a172af53c03e1a43 100644 (file)
@@ -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