From 601126c19eaa5004f01d30f93ca37cf354c0ce8a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 4 Apr 2019 11:44:56 +0800 Subject: [PATCH] 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) --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 90a6bfc6777a2..c430b19a3af18 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -287,7 +287,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 -- 2.39.5