From a5eb70fc7025f7de711a117718fcec44d28320d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Mon, 4 Nov 2019 10:45:39 +0100 Subject: [PATCH] cmake: Fixed a bug where python 3.8 was not detected on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed a bug where python 3.8 was not detected on Windows. Python 3.8 was released two weeks ago and any Windows user that installs it will detect the wrong version. Also add detection for 3.9 for future-proofing. Signed-off-by: Sebastian Bøe --- cmake/backports/FindPythonInterp.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/backports/FindPythonInterp.cmake b/cmake/backports/FindPythonInterp.cmake index 634c1852633a..20eb7aebb373 100644 --- a/cmake/backports/FindPythonInterp.cmake +++ b/cmake/backports/FindPythonInterp.cmake @@ -79,7 +79,7 @@ unset(_Python_NAMES) set(_PYTHON1_VERSIONS 1.6 1.5) set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0) -set(_PYTHON3_VERSIONS 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) +set(_PYTHON3_VERSIONS 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) if(PythonInterp_FIND_VERSION) if(PythonInterp_FIND_VERSION_COUNT GREATER 1)