diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8109d6f337190bd9b0e30c6288d4712340e779dc..6416945ec494626e3aea68aae3cf59e31f7359d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,8 +95,8 @@ if(BGS_PYTHON_SUPPORT)
   else()
     find_package(Boost REQUIRED COMPONENTS python3)
   endif()
-  find_package(PythonInterp REQUIRED)
-  find_package(PythonLibs REQUIRED)
+  find_package(PythonInterp ${BGS_PYTHON_VERSION} REQUIRED)
+  find_package(PythonLibs ${BGS_PYTHON_VERSION} REQUIRED)
 
   message(STATUS "Boost library status:")
   message(STATUS "    version: ${Boost_VERSION}")