remove useless Python version variable

This commit is contained in:
Denis Rouzaud 2017-05-29 14:55:52 +02:00
parent 1f22df7813
commit 6575a60ae2
2 changed files with 2 additions and 4 deletions

View File

@ -630,9 +630,7 @@ ENDIF (DISABLE_DEPRECATED)
#############################################################
# Python build dependency
SET(PYTHON_VER 3 CACHE STRING "Python version")
FIND_PACKAGE(PythonInterp ${PYTHON_VER} REQUIRED)
FIND_PACKAGE(PythonInterp 3 REQUIRED)
#############################################################
# Python bindings

View File

@ -20,7 +20,7 @@
#
# Need python interpreter:
FIND_PACKAGE(PythonInterp ${PYTHON_VER} REQUIRED)
FIND_PACKAGE(PythonInterp 3 REQUIRED)
MARK_AS_ADVANCED(PYTHON_EXECUTABLE)
MACRO(ADD_PYTHON_TEST TESTNAME FILENAME)