diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-10-29 16:02:55 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-11-03 14:12:58 (GMT) |
commit | e452f6e2cf596c34e231b56803f739a878530ad9 (patch) | |
tree | f8f003d0d3e71c1b9288dacf513825c80ad64bb0 /Modules/FindPython3.cmake | |
parent | 622ac065d2abeb53de3548b7e4f3d9b5980dfa8d (diff) | |
download | CMake-e452f6e2cf596c34e231b56803f739a878530ad9.zip CMake-e452f6e2cf596c34e231b56803f739a878530ad9.tar.gz CMake-e452f6e2cf596c34e231b56803f739a878530ad9.tar.bz2 |
FindPython: Adds control over artifact names to search
Fixes: #21371
Diffstat (limited to 'Modules/FindPython3.cmake')
-rw-r--r-- | Modules/FindPython3.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Modules/FindPython3.cmake b/Modules/FindPython3.cmake index c79d482..2bd4d76 100644 --- a/Modules/FindPython3.cmake +++ b/Modules/FindPython3.cmake @@ -315,6 +315,22 @@ Hints ``.Net`` interpreter (i.e. ``mono`` command) is expected to be available through the ``PATH`` variable. +``Python3_FIND_UNVERSIONED_NAMES`` + + .. versionadded:: 3.20 + + This variable defines how the generic names will be searched. Currently, it + only applies to the generic names of the interpreter, namely, ``python3`` and + ``python``. + The ``Python3_FIND_UNVERSIONED_NAMES`` variable can be set to one of the + following values: + + * ``FIRST``: The generic names are searched before the more specialized ones + (such as ``python3.5`` for example). + * ``LAST``: The generic names are searched after the more specialized ones. + This is the default. + * ``NEVER``: The generic name are not searched at all. + Artifacts Specification ^^^^^^^^^^^^^^^^^^^^^^^ |