Skip to content

Commit b7dce05

Browse files
committed
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 parent 1ee3c37 commit b7dce05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
SET(Python_ADDITIONAL_VERSIONS 3 2.7)
12
FIND_PACKAGE(PythonInterp)
23

34
IF(NOT PYTHONINTERP_FOUND)

0 commit comments

Comments
 (0)