From 329f6aeca5011e423a65ccede3177cd4f0ef1e21 Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Tue, 11 Sep 2018 10:48:08 +0200 Subject: FindPython*: Windows: add facility to select lookup order for registry. Fixes: #18302 --- Modules/FindPython.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Modules/FindPython.cmake') 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. -- cgit v1.2.1