Improve CMake Python code

* We have code with u'' which means minimum version is 3.3
* Python 3.8 is already in development, be a bit more future proof
This commit is contained in:
Thomas Pointhuber
2018-10-19 09:59:06 +02:00
committed by Maciej Suminski
parent a27e547290
commit 4a2a76af37
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -37,7 +37,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.3 3.2 3.1 3.0)
set(_PYTHON3_VERSIONS 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 MATCHES "^[0-9]+\\.[0-9]+(\\.[0-9]+.*)?$")