BASIS  r3148
FindPythonInterp.cmake File Reference

Find Python interpreter. More...

#include "FindPackageHandleStandardArgs.cmake"
+ Include dependency graph for FindPythonInterp.cmake:

Go to the source code of this file.

Variables

cmake _PYTHON1_VERSIONS
cmake _PYTHON2_VERSIONS
cmake _PYTHON3_VERSIONS
cmake _PYTHON_FIND_OTHER_VERSIONS
cmake _Python_NAMES
cmake PYTHON_VERSION_MAJOR
cmake PYTHON_VERSION_MINOR
cmake PYTHON_VERSION_PATCH
cmake PYTHON_VERSION_STRING

Detailed Description

Find Python interpreter.

Input variables:
Python_ADDITIONAL_VERSIONS List of version numbers that should be taken into account when searching for Python.
Output variables:
PYTHONINTERP_FOUND Was the Python executable found.
PYTHON_EXECUTABLE Path to the Python interpreter.
PYTHON_VERSION_STRING Python version found e.g. 2.5.2.
PYTHON_VERSION_MAJOR Python major version found e.g. 2.
PYTHON_VERSION_MINOR Python minor version found e.g. 5.
PYTHON_VERSION_PATCH Python patch version found e.g. 2.
Note:
This module has been copied from the Git repository of CMake on 4/12/2012, i.e., before the release of CMake 2.8.8. Once CMake 2.8.8 or any version is available for all major platforms, consider to remove this module from the BASIS package.

Definition in file FindPythonInterp.cmake.


Variable Documentation

Definition at line 50 of file FindPythonInterp.cmake.

Definition at line 87 of file FindPythonInterp.cmake.

Definition at line 88 of file FindPythonInterp.cmake.

Definition at line 107 of file FindPythonInterp.cmake.

Definition at line 133 of file FindPythonInterp.cmake.

Definition at line 179 of file FindPythonInterp.cmake.

Definition at line 180 of file FindPythonInterp.cmake.

Definition at line 173 of file FindPythonInterp.cmake.

Definition at line 178 of file FindPythonInterp.cmake.