summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython3.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2018-10-02 09:09:45 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2018-10-02 09:09:45 (GMT)
commit63c9356544ccd1471e3c428f21662420c0ceb00b (patch)
tree87a9c6a0a8fb3a953312157b079b047973b79ae0 /Modules/FindPython3.cmake
parent44de3428597671228c95939c4b509ebaa24f00fe (diff)
downloadCMake-63c9356544ccd1471e3c428f21662420c0ceb00b.zip
CMake-63c9356544ccd1471e3c428f21662420c0ceb00b.tar.gz
CMake-63c9356544ccd1471e3c428f21662420c0ceb00b.tar.bz2
FindPython*: fix erroneous handling of virtual environments
fixes: #18408
Diffstat (limited to 'Modules/FindPython3.cmake')
-rw-r--r--Modules/FindPython3.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindPython3.cmake b/Modules/FindPython3.cmake
index ed7e1a3..2176f3f 100644
--- a/Modules/FindPython3.cmake
+++ b/Modules/FindPython3.cmake
@@ -136,6 +136,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
^^^^^^^^