summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython3.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2018-09-11 08:48:08 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2018-09-12 08:04:05 (GMT)
commit329f6aeca5011e423a65ccede3177cd4f0ef1e21 (patch)
tree860055e34c53312d77f76362805c8c65ad0a2a43 /Modules/FindPython3.cmake
parentffb560adc98ee7c07d0e3cd50b28a38a4997cc8b (diff)
downloadCMake-329f6aeca5011e423a65ccede3177cd4f0ef1e21.zip
CMake-329f6aeca5011e423a65ccede3177cd4f0ef1e21.tar.gz
CMake-329f6aeca5011e423a65ccede3177cd4f0ef1e21.tar.bz2
FindPython*: Windows: add facility to select lookup order for registry.
Fixes: #18302
Diffstat (limited to 'Modules/FindPython3.cmake')
-rw-r--r--Modules/FindPython3.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/FindPython3.cmake b/Modules/FindPython3.cmake
index 48054a9..ed7e1a3 100644
--- a/Modules/FindPython3.cmake
+++ b/Modules/FindPython3.cmake
@@ -117,6 +117,17 @@ Hints
* If set to TRUE, search **only** for static libraries.
* If set to FALSE, search **only** for shared libraries.
+``Python3_FIND_REGISTRY``
+ On Windows the ``Python3_FIND_REGISTRY`` variable determine the order
+ of preference between registry and environment variables.
+ the ``Python3_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.