Make FIND_PACKAGE(PythonInterp) prefer python3

This change makes it possible to prefer a python (version 3) interpreter
on systems where python2 and python3 coexist (where python2 is found as
`/usr/bin/python`).
This commit is contained in:
lhchavez
2021-06-16 06:38:41 -07:00
parent 1ee3c37f48
commit b7dce05cb5

View File

@@ -1,3 +1,4 @@
SET(Python_ADDITIONAL_VERSIONS 3 2.7)
FIND_PACKAGE(PythonInterp)
IF(NOT PYTHONINTERP_FOUND)