FindPython*: Windows: add facility to select lookup order for registry.

Fixes: #18302
This commit is contained in:
Marc Chevrier
2018-09-11 10:48:08 +02:00
parent ffb560adc9
commit 329f6aeca5
5 changed files with 244 additions and 61 deletions

View File

@@ -116,6 +116,17 @@ Hints
* If set to TRUE, search **only** for static libraries.
* If set to FALSE, search **only** for shared libraries.
``Python_FIND_REGISTRY``
On Windows the ``Python_FIND_REGISTRY`` variable determine the order
of preference between registry and environment variables.
the ``Python_FIND_REGISTRY`` variable can be set to empty or one of the
following:
* ``FIRST``: Try to use registry before environment variables.
This is the default.
* ``LAST``: Try to use registry after environment variables.
* ``NEVER``: Never try to use registry.
``CMAKE_FIND_FRAMEWORK``
On OS X the :variable:`CMAKE_FIND_FRAMEWORK` variable determine the order of
preference between Apple-style and unix-style package components.