summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-03 12:06:02 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-10-03 12:06:08 (GMT)
commitcf9f3852ddd9330a18e6f9b46e40a914cd909156 (patch)
tree6dee7d6205f091c535941a2e5a96f0d0fc3ba4b2 /Modules/FindPython.cmake
parent868ced8619e7a30c79346c38f8ba313686e66844 (diff)
parent63c9356544ccd1471e3c428f21662420c0ceb00b (diff)
downloadCMake-cf9f3852ddd9330a18e6f9b46e40a914cd909156.zip
CMake-cf9f3852ddd9330a18e6f9b46e40a914cd909156.tar.gz
CMake-cf9f3852ddd9330a18e6f9b46e40a914cd909156.tar.bz2
Merge topic 'bug-fixes'
63c9356544 FindPython*: fix erroneous handling of virtual environments Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2430
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r--Modules/FindPython.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake
index 0bf0b4f..8645a0d 100644
--- a/Modules/FindPython.cmake
+++ b/Modules/FindPython.cmake
@@ -135,6 +135,12 @@ Hints
Value ``ONLY`` is not supported so ``FIRST`` will be used instead.
+.. note::
+
+ If a Python virtual environment is configured, set variable
+ ``Python_FIND_REGISTRY`` (Windows) or ``CMAKE_FIND_FRAMEWORK`` (macOS) with
+ value ``LAST`` or ``NEVER`` to select it preferably.
+
Commands
^^^^^^^^