summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython3.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-05-07 12:39:13 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-05-11 12:02:59 (GMT)
commite8ffc602209867eee9bc3a1331a673fa61cd03a2 (patch)
tree8c03343d87038424e00deb024f8fe5ace4ebed28 /Modules/FindPython3.cmake
parent8afac758e6e793a0f004ce2693b0096362391cd9 (diff)
downloadCMake-e8ffc602209867eee9bc3a1331a673fa61cd03a2.zip
CMake-e8ffc602209867eee9bc3a1331a673fa61cd03a2.tar.gz
CMake-e8ffc602209867eee9bc3a1331a673fa61cd03a2.tar.bz2
FindPython: Add IronPython support on all platforms
Diffstat (limited to 'Modules/FindPython3.cmake')
-rw-r--r--Modules/FindPython3.cmake16
1 files changed, 15 insertions, 1 deletions
diff --git a/Modules/FindPython3.cmake b/Modules/FindPython3.cmake
index d8fc54a..f142c07 100644
--- a/Modules/FindPython3.cmake
+++ b/Modules/FindPython3.cmake
@@ -127,6 +127,8 @@ This module will set the following variables in your project
``Python3_COMPILER_ID``
A short string unique to the compiler. Possible values include:
* IronPython
+``Python3_DOTNET_LAUNCHER``
+ The ``.Net`` interpreter. Only used by ``IronPython`` implementation.
``Python3_Development_FOUND``
System has the Python 3 development artifacts.
``Python3_Development.Module_FOUND``
@@ -285,7 +287,10 @@ Hints
``RPython translation toolchain`` to produce the python interpreter.
See `PyPy <https://www.pypy.org>`_.
- The default value is the list: ``CPython``, ``IronPython``.
+ The default value is:
+
+ * Windows platform: ``CPython``, ``IronPython``
+ * Other platforms: ``CPython``
.. note::
@@ -295,6 +300,12 @@ Hints
``Python3_FIND_STRATEGY=LOCATION``, each location will be search first for
``IronPython`` and second for ``CPython``.
+ .. note::
+
+ When ``IronPython`` is specified, on platforms other than ``Windows``, the
+ ``.Net`` interpreter (i.e. ``mono`` command) is expected to be available
+ through the ``PATH`` variable.
+
Artifacts Specification
^^^^^^^^^^^^^^^^^^^^^^^
@@ -307,6 +318,9 @@ setting the following variables:
``Python3_COMPILER``
The path to the compiler.
+``Python3_DOTNET_LAUNCHER``
+ The ``.Net`` interpreter. Only used by ``IronPython`` implementation.
+
``Python3_LIBRARY``
The path to the library. It will be used to compute the
variables ``Python3_LIBRARIES``, ``Python3_LIBRAY_DIRS`` and