From: Nicolas Dandrimont <olasd@debian.org>
Date: Mon, 20 Jan 2020 12:37:08 +0100
Subject: Allow overriding the Python version in CMake

---
 CMakeLists.txt      | 2 +-
 cmake/FindSIP.cmake | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,7 +12,7 @@ if(${CMAKE_VERSION} VERSION_LESS 3.12)
     set(Python3_VERSION_MINOR ${PYTHON_VERSION_MINOR})
 else()
     # Use FindPython3 for CMake >=3.12
-    find_package(Python3 3.4 REQUIRED COMPONENTS Interpreter)
+    find_package(Python3 ${PYVER} EXACT REQUIRED COMPONENTS Interpreter)
 endif()
 
 option(INSTALL_SERVICE "Install the Charon DBus-service" ON)
