diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-04-22 13:01:21 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-04-28 11:56:18 (GMT) |
commit | d2c47c822b50d3cfd23b208c663fbe4f40fcf2f5 (patch) | |
tree | 0f7183ab2b5a8875bc97b8673a9a726bf1e0358d /Modules/FindPython2.cmake | |
parent | 265fb71c917e3921012c2950a921cb380f60ae0f (diff) | |
download | CMake-d2c47c822b50d3cfd23b208c663fbe4f40fcf2f5.zip CMake-d2c47c822b50d3cfd23b208c663fbe4f40fcf2f5.tar.gz CMake-d2c47c822b50d3cfd23b208c663fbe4f40fcf2f5.tar.bz2 |
FindPython: Add capability to specify Python implementations
Through hint Python_FIND_IMPLEMENTATIONS it is possble to specify, as an
ordered list, which implementations must be searched for.
Currently possible values are:
* CPython
* IronPython
Diffstat (limited to 'Modules/FindPython2.cmake')
-rw-r--r-- | Modules/FindPython2.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Modules/FindPython2.cmake b/Modules/FindPython2.cmake index ef3280f..def6f3c 100644 --- a/Modules/FindPython2.cmake +++ b/Modules/FindPython2.cmake @@ -218,6 +218,27 @@ Hints recommended to also include the component ``Interpreter`` to get expected result. +``Python2_FIND_IMPLEMENTATIONS`` + This variable defines, in an ordered list, the different implementations + which will be searched. The ``Python2_FIND_IMPLEMENTATIONS`` variable can + hold the following values: + + * ``CPython``: this is the standard implementation. Various products, like + ``Anaconda`` or ``ActivePython``, rely on this implementation. + * ``IronPython``: This implementation use the ``CSharp`` language for + ``.NET Framework`` on top of the `Dynamic Language Runtime` (``DLR``). + See `IronPython <http://ironpython.net>`_. + + The default value is the list: ``CPython``, ``IronPython``. + + .. note:: + + This hint has the lowest priority of all hints, so even if, for example, + you specify ``IronPython`` first and ``CPython`` in second, a python + product based on ``CPython`` can be selected because, for example with + ``Python2_FIND_STRATEGY=LOCATION``, each location will be search first for + ``IronPython`` and second for ``CPython``. + Artifacts Specification ^^^^^^^^^^^^^^^^^^^^^^^ |