|
Line
Link Here
|
| 0 |
-- Modules/FindPythonInterp.cmake |
0 |
++ Modules/FindPythonInterp.cmake |
|
Lines 61-67
Link Here
|
| 61 |
list(APPEND _Python_NAMES python) |
61 |
list(APPEND _Python_NAMES python) |
| 62 |
|
62 |
|
| 63 |
# Search for the current active python version first |
63 |
# Search for the current active python version first |
| 64 |
find_program(PYTHON_EXECUTABLE NAMES ${_Python_NAMES}) |
64 |
find_program(PYTHON_EXECUTABLE NAMES python) |
| 65 |
|
65 |
|
| 66 |
# Set up the versions we know about, in the order we will search. Always add |
66 |
# Set up the versions we know about, in the order we will search. Always add |
| 67 |
# the user supplied additional versions to the front. |
67 |
# the user supplied additional versions to the front. |
| 68 |
-- Modules/FindPythonLibs.cmake |
68 |
++ Modules/FindPythonLibs.cmake |
|
Lines 68-73
Link Here
|
| 68 |
UNSET(_PYTHON2_VERSIONS) |
68 |
UNSET(_PYTHON2_VERSIONS) |
| 69 |
UNSET(_PYTHON3_VERSIONS) |
69 |
UNSET(_PYTHON3_VERSIONS) |
| 70 |
|
70 |
|
|
|
71 |
EXECUTE_PROCESS(COMMAND python -c "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))" |
| 72 |
OUTPUT_VARIABLE _Python_VERSIONS) |
| 71 |
FOREACH(_CURRENT_VERSION ${_Python_VERSIONS}) |
73 |
FOREACH(_CURRENT_VERSION ${_Python_VERSIONS}) |
| 72 |
STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION}) |
74 |
STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION}) |
| 73 |
IF(WIN32) |
75 |
IF(WIN32) |