diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-05-07 14:39:13 +0200 |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-05-11 14:02:59 +0200 |
commit | e8ffc602209867eee9bc3a1331a673fa61cd03a2 (patch) | |
tree | 8c03343d87038424e00deb024f8fe5ace4ebed28 /Modules/FindPython2.cmake | |
parent | 8afac758e6e793a0f004ce2693b0096362391cd9 (diff) | |
download | cmake-e8ffc602209867eee9bc3a1331a673fa61cd03a2.tar.gz |
FindPython: Add IronPython support on all platforms
Diffstat (limited to 'Modules/FindPython2.cmake')
-rw-r--r-- | Modules/FindPython2.cmake | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Modules/FindPython2.cmake b/Modules/FindPython2.cmake index 4ef0e5acb4..84c0c73b60 100644 --- a/Modules/FindPython2.cmake +++ b/Modules/FindPython2.cmake @@ -118,6 +118,8 @@ This module will set the following variables in your project ``Python2_COMPILER_ID`` A short string unique to the compiler. Possible values include: * IronPython +``Python2_DOTNET_LAUNCHER`` + The ``.Net`` interpreter. Only used by ``IronPython`` implementation. ``Python2_Development_FOUND`` System has the Python 2 development artifacts. ``Python2_Development.Module_FOUND`` @@ -235,7 +237,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:: @@ -245,6 +250,12 @@ Hints ``Python2_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 ^^^^^^^^^^^^^^^^^^^^^^^ @@ -257,6 +268,9 @@ setting the following variables: ``Python2_COMPILER`` The path to the compiler. +``Python2_DOTNET_LAUNCHER`` + The ``.Net`` interpreter. Only used by ``IronPython`` implementation. + ``Python2_LIBRARY`` The path to the library. It will be used to compute the variables ``Python2_LIBRARIES``, ``Python2_LIBRAY_DIRS`` and |