"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Modules/FindPython3.cmake" between
cmake-3.13.4.tar.gz and cmake-3.14.0-rc1.tar.gz

About: CMake is a cross-platform build system designed to build, test and package software. Release candidate.

FindPython3.cmake  (cmake-3.13.4):FindPython3.cmake  (cmake-3.14.0-rc1)
skipping to change at line 17 skipping to change at line 17
Find Python 3 interpreter, compiler and development environment (include Find Python 3 interpreter, compiler and development environment (include
directories and libraries). directories and libraries).
Three components are supported: Three components are supported:
* ``Interpreter``: search for Python 3 interpreter * ``Interpreter``: search for Python 3 interpreter
* ``Compiler``: search for Python 3 compiler. Only offered by IronPython. * ``Compiler``: search for Python 3 compiler. Only offered by IronPython.
* ``Development``: search for development artifacts (include directories and * ``Development``: search for development artifacts (include directories and
libraries) libraries)
* ``NumPy``: search for NumPy include directories.
If no ``COMPONENTS`` is specified, ``Interpreter`` is assumed. If no ``COMPONENTS`` is specified, ``Interpreter`` is assumed.
To ensure consistent versions between components ``Interpreter``, ``Compiler`` To ensure consistent versions between components ``Interpreter``, ``Compiler``,
and ``Development``, specify all components at the same time:: ``Development`` and ``NumPy``, specify all components at the same time::
find_package (Python3 COMPONENTS Interpreter Development) find_package (Python3 COMPONENTS Interpreter Development)
This module looks only for version 3 of Python. This module can be used This module looks only for version 3 of Python. This module can be used
concurrently with :module:`FindPython2` module to use both Python versions. concurrently with :module:`FindPython2` module to use both Python versions.
The :module:`FindPython` module can be used if Python version does not matter The :module:`FindPython` module can be used if Python version does not matter
for you. for you.
Imported Targets Imported Targets
^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
This module defines the following :ref:`Imported Targets <Imported Targets>`: This module defines the following :ref:`Imported Targets <Imported Targets>`
(when :prop_gbl:`CMAKE_ROLE` is ``PROJECT``):
``Python3::Interpreter`` ``Python3::Interpreter``
Python 3 interpreter. Target defined if component ``Interpreter`` is found. Python 3 interpreter. Target defined if component ``Interpreter`` is found.
``Python3::Compiler`` ``Python3::Compiler``
Python 3 compiler. Target defined if component ``Compiler`` is found. Python 3 compiler. Target defined if component ``Compiler`` is found.
``Python3::Python`` ``Python3::Python``
Python 3 library. Target defined if component ``Development`` is found. Python 3 library. Target defined if component ``Development`` is found.
``Python3::NumPy``
NumPy library for Python 3. Target defined if component ``NumPy`` is found.
Result Variables Result Variables
^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
This module will set the following variables in your project This module will set the following variables in your project
(see :ref:`Standard Variable Names <CMake Developer Standard Variable Names>`): (see :ref:`Standard Variable Names <CMake Developer Standard Variable Names>`):
``Python3_FOUND`` ``Python3_FOUND``
System has the Python 3 requested components. System has the Python 3 requested components.
``Python3_Interpreter_FOUND`` ``Python3_Interpreter_FOUND``
skipping to change at line 107 skipping to change at line 111
``Python3_RUNTIME_LIBRARY_DIRS`` ``Python3_RUNTIME_LIBRARY_DIRS``
The Python 3 runtime library directories. The Python 3 runtime library directories.
``Python3_VERSION`` ``Python3_VERSION``
Python 3 version. Python 3 version.
``Python3_VERSION_MAJOR`` ``Python3_VERSION_MAJOR``
Python 3 major version. Python 3 major version.
``Python3_VERSION_MINOR`` ``Python3_VERSION_MINOR``
Python 3 minor version. Python 3 minor version.
``Python3_VERSION_PATCH`` ``Python3_VERSION_PATCH``
Python 3 patch version. Python 3 patch version.
``Python3_NumPy_FOUND``
System has the NumPy.
``Python3_NumPy_INCLUDE_DIRS``
The NumPy include directries.
``Python3_NumPy_VERSION``
The NumPy version.
Hints Hints
^^^^^ ^^^^^
``Python3_ROOT_DIR`` ``Python3_ROOT_DIR``
Define the root directory of a Python 3 installation. Define the root directory of a Python 3 installation.
``Python3_USE_STATIC_LIBS`` ``Python3_USE_STATIC_LIBS``
* If not defined, search for shared libraries and static libraries in that * If not defined, search for shared libraries and static libraries in that
order. order.
skipping to change at line 148 skipping to change at line 158
.. note:: .. note::
If a Python virtual environment is configured, set variable If a Python virtual environment is configured, set variable
``Python_FIND_REGISTRY`` (Windows) or ``CMAKE_FIND_FRAMEWORK`` (macOS) with ``Python_FIND_REGISTRY`` (Windows) or ``CMAKE_FIND_FRAMEWORK`` (macOS) with
value ``LAST`` or ``NEVER`` to select it preferably. value ``LAST`` or ``NEVER`` to select it preferably.
Commands Commands
^^^^^^^^ ^^^^^^^^
This module defines the command ``Python3_add_library`` which have the same This module defines the command ``Python3_add_library`` (when
semantic as :command:`add_library` but take care of Python module naming rules :prop_gbl:`CMAKE_ROLE` is ``PROJECT``), which has the same semantics as
(only applied if library is of type ``MODULE``) and add dependency to target :command:`add_library`, but takes care of Python module naming rules
(only applied if library is of type ``MODULE``), and adds a dependency to target
``Python3::Python``:: ``Python3::Python``::
Python3_add_library (my_module MODULE src1.cpp) Python3_add_library (my_module MODULE src1.cpp)
If library type is not specified, ``MODULE`` is assumed. If library type is not specified, ``MODULE`` is assumed.
#]=======================================================================] #]=======================================================================]
set (_PYTHON_PREFIX Python3) set (_PYTHON_PREFIX Python3)
set (_Python3_REQUIRED_VERSION_MAJOR 3) set (_Python3_REQUIRED_VERSION_MAJOR 3)
 End of changes. 6 change blocks. 
6 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)