summaryrefslogtreecommitdiff
path: root/Modules/FindPython.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-05-07 14:39:13 +0200
committerMarc Chevrier <marc.chevrier@gmail.com>2020-05-11 14:02:59 +0200
commite8ffc602209867eee9bc3a1331a673fa61cd03a2 (patch)
tree8c03343d87038424e00deb024f8fe5ace4ebed28 /Modules/FindPython.cmake
parent8afac758e6e793a0f004ce2693b0096362391cd9 (diff)
downloadcmake-e8ffc602209867eee9bc3a1331a673fa61cd03a2.tar.gz
FindPython: Add IronPython support on all platforms
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r--Modules/FindPython.cmake16
1 files changed, 15 insertions, 1 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake
index a97f3c5d9f..01b82c4b21 100644
--- a/Modules/FindPython.cmake
+++ b/Modules/FindPython.cmake
@@ -126,6 +126,8 @@ This module will set the following variables in your project
``Python_COMPILER_ID``
A short string unique to the compiler. Possible values include:
* IronPython
+``Python_DOTNET_LAUNCHER``
+ The ``.Net`` interpreter. Only used by ``IronPython`` implementation.
``Python_Development_FOUND``
System has the Python development artifacts.
``Python_Development.Module_FOUND``
@@ -288,7 +290,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::
@@ -298,6 +303,12 @@ Hints
``Python_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
^^^^^^^^^^^^^^^^^^^^^^^
@@ -310,6 +321,9 @@ setting the following variables:
``Python_COMPILER``
The path to the compiler.
+``Python_DOTNET_LAUNCHER``
+ The ``.Net`` interpreter. Only used by ``IronPython`` implementation.
+
``Python_LIBRARY``
The path to the library. It will be used to compute the
variables ``Python_LIBRARIES``, ``Python_LIBRAY_DIRS`` and