summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-18 15:15:07 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-09-18 15:15:13 (GMT)
commitf9eac2ae4b986f74a97fe16fa19df94331a52b34 (patch)
treee736757c0b878c4c120bd01af4f58f6af4b1f5d1 /Modules/FindPython.cmake
parent6097d8dd3d6ea6e5a0a6012952b722d0719d39e9 (diff)
parent329f6aeca5011e423a65ccede3177cd4f0ef1e21 (diff)
downloadCMake-f9eac2ae4b986f74a97fe16fa19df94331a52b34.zip
CMake-f9eac2ae4b986f74a97fe16fa19df94331a52b34.tar.gz
CMake-f9eac2ae4b986f74a97fe16fa19df94331a52b34.tar.bz2
Merge topic 'FindPython-updates'
329f6aeca5 FindPython*: Windows: add facility to select lookup order for registry. ffb560adc9 FindPython*: MacOS: Fix erroneous handling of Frameworks. b0b53921ce FindPython: clean-up lookup names strategy Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2369
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r--Modules/FindPython.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake
index 8139e53..0bf0b4f 100644
--- a/Modules/FindPython.cmake
+++ b/Modules/FindPython.cmake
@@ -116,6 +116,25 @@ 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.
+
+ .. note::
+
+ Value ``ONLY`` is not supported so ``FIRST`` will be used instead.
+
Commands
^^^^^^^^