diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2018-09-11 08:48:08 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2018-09-12 08:04:05 (GMT) |
commit | 329f6aeca5011e423a65ccede3177cd4f0ef1e21 (patch) | |
tree | 860055e34c53312d77f76362805c8c65ad0a2a43 /Modules/FindPython.cmake | |
parent | ffb560adc98ee7c07d0e3cd50b28a38a4997cc8b (diff) | |
download | CMake-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/FindPython.cmake')
-rw-r--r-- | Modules/FindPython.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake index b8657b4..0bf0b4f 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. |