Commit b7dce05cb5f6b2cd8fd5b79a2ab06f8d314c1700

lhchavez 2021-06-16T06:38:41

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`).

1
2
3
4
5
6
7
8
9
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 4d8732d..600c617 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,3 +1,4 @@
+SET(Python_ADDITIONAL_VERSIONS 3 2.7)
 FIND_PACKAGE(PythonInterp)
 
 IF(NOT PYTHONINTERP_FOUND)