Skip to content

Commit faeb7de

Browse files
committed
[cmake] FindPython: prefer python3 over python
1 parent ee655a8 commit faeb7de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/FindPython.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ endif()
3232

3333
# IF PYTHON_EXECUTABLE is not defined, try to find a python
3434
if(NOT PYTHON_EXECUTABLE)
35-
find_program(PYTHON_EXECUTABLE NAMES python python3 PATHS $ENV{PATH} DOC "Path to the Python interpreter")
35+
find_program(PYTHON_EXECUTABLE NAMES python3 python PATHS $ENV{PATH} DOC "Path to the Python interpreter")
3636
endif(NOT PYTHON_EXECUTABLE)
3737
if(NOT PYTHON_EXECUTABLE)
3838
message(FATAL_ERROR "No python interpreter found")

0 commit comments

Comments
 (0)