summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-05-24 16:44:43 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2019-05-24 16:44:43 (GMT)
commit62d6ed79fb4cc4cdeb1a246f0f12db7e6031f4ba (patch)
tree109846dd8a4eb30116f236c0cd686cdbf34aa6fd /Modules/FindPython.cmake
parent4ec2b999414495ae58871755307ea17f391f7910 (diff)
downloadCMake-62d6ed79fb4cc4cdeb1a246f0f12db7e6031f4ba.zip
CMake-62d6ed79fb4cc4cdeb1a246f0f12db7e6031f4ba.tar.gz
CMake-62d6ed79fb4cc4cdeb1a246f0f12db7e6031f4ba.tar.bz2
FindPython: Add variable 'Python_FIND_FRAMEWORK' to control frameworks lookup.
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r--Modules/FindPython.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake
index 59c286d..e2f3bf3 100644
--- a/Modules/FindPython.cmake
+++ b/Modules/FindPython.cmake
@@ -161,14 +161,19 @@ Hints
* ``LAST``: Try to use registry after environment variables.
* ``NEVER``: Never try to use registry.
-``CMAKE_FIND_FRAMEWORK``
- On macOS the :variable:`CMAKE_FIND_FRAMEWORK` variable determine the order of
+``Python_FIND_FRAMEWORK``
+ On macOS the ``Python_FIND_FRAMEWORK`` variable determine the order of
preference between Apple-style and unix-style package components.
+ This variable can be set to empty or take same values as
+ :variable:`CMAKE_FIND_FRAMEWORK` variable.
.. note::
Value ``ONLY`` is not supported so ``FIRST`` will be used instead.
+ If ``Python_FIND_FRAMEWORK`` is not defined, :variable:`CMAKE_FIND_FRAMEWORK`
+ variable will be used, if any.
+
``Python_FIND_VIRTUALENV``
This variable defines the handling of virtual environments. It is meaningfull
only when a virtual environment is active (i.e. the ``activate`` script has