Lines 29-36
CMAKE_FIND_FRAMEWORKS(Python)
Link Here
|
29 |
|
29 |
|
30 |
# Set up the versions we know about, in the order we will search. Always add |
30 |
# Set up the versions we know about, in the order we will search. Always add |
31 |
# the user supplied additional versions to the front. |
31 |
# the user supplied additional versions to the front. |
|
|
32 |
EXECUTE_PROCESS(COMMAND python -c "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))" |
33 |
OUTPUT_VARIABLE _Python_VERSIONS) |
32 |
set(_Python_VERSIONS |
34 |
set(_Python_VERSIONS |
33 |
${Python_ADDITIONAL_VERSIONS} |
35 |
${Python_ADDITIONAL_VERSIONS} |
|
|
36 |
${_Python_VERSIONS} |
34 |
2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5) |
37 |
2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5) |
35 |
|
38 |
|
36 |
FOREACH(_CURRENT_VERSION ${_Python_VERSIONS}) |
39 |
FOREACH(_CURRENT_VERSION ${_Python_VERSIONS}) |