Variables
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

§ _PYTHON1_VERSIONS

cmake _PYTHON1_VERSIONS

Definition at line 50 of file FindPythonInterp.cmake.

§ _PYTHON2_VERSIONS

cmake _PYTHON2_VERSIONS

Definition at line 68 of file FindPythonInterp.cmake.

§ _PYTHON3_VERSIONS

cmake _PYTHON3_VERSIONS

Definition at line 69 of file FindPythonInterp.cmake.

§ _PYTHON_FIND_OTHER_VERSIONS

cmake _PYTHON_FIND_OTHER_VERSIONS

Definition at line 88 of file FindPythonInterp.cmake.

§ _Python_NAMES

cmake _Python_NAMES

Definition at line 114 of file FindPythonInterp.cmake.

§ PYTHON_VERSION_MAJOR

cmake PYTHON_VERSION_MAJOR

Definition at line 169 of file FindPythonInterp.cmake.

§ PYTHON_VERSION_MINOR

cmake PYTHON_VERSION_MINOR

Definition at line 170 of file FindPythonInterp.cmake.

§ PYTHON_VERSION_PATCH

cmake PYTHON_VERSION_PATCH

Definition at line 163 of file FindPythonInterp.cmake.

§ PYTHON_VERSION_STRING

cmake PYTHON_VERSION_STRING

Definition at line 168 of file FindPythonInterp.cmake.