summaryrefslogtreecommitdiff
path: root/Modules/FindPython.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2018-09-11 10:48:08 +0200
committerMarc Chevrier <marc.chevrier@gmail.com>2018-09-12 10:04:05 +0200
commit329f6aeca5011e423a65ccede3177cd4f0ef1e21 (patch)
tree860055e34c53312d77f76362805c8c65ad0a2a43 /Modules/FindPython.cmake
parentffb560adc98ee7c07d0e3cd50b28a38a4997cc8b (diff)
downloadcmake-329f6aeca5011e423a65ccede3177cd4f0ef1e21.tar.gz
FindPython*: Windows: add facility to select lookup order for registry.
Fixes: #18302
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r--Modules/FindPython.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake
index b8657b47d6..0bf0b4f582 100644
--- a/Modules/FindPython.cmake
+++ b/Modules/FindPython.cmake
@@ -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.