Lines 907-913
Link Here
|
907 |
set( _boost_docstring_debug "Boost ${COMPONENT} library (debug)") |
907 |
set( _boost_docstring_debug "Boost ${COMPONENT} library (debug)") |
908 |
if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python") |
908 |
if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python") |
909 |
# Get version of Python. |
909 |
# Get version of Python. |
910 |
execute_process(COMMAND python -c "import sys; sys.stdout.write('.'.join(str(x) for x in sys.version_info[:2]))" OUTPUT_VARIABLE _python_version) |
910 |
if (NOT PYTHON_EXECUTABLE) |
|
|
911 |
#if a certain version of python was detected by cmake before use that one |
912 |
set(PYTHON_EXECUTABLE "python") |
913 |
endif (NOT PYTHON_EXECUTABLE) |
914 |
execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c "import sys; sys.stdout.write('.'.join(str(x) for x in sys.version_info[:2]))" OUTPUT_VARIABLE _python_version) |
911 |
endif() |
915 |
endif() |
912 |
|
916 |
|
913 |
|
917 |
|