diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2018-10-02 09:09:45 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2018-10-02 09:09:45 (GMT) |
commit | 63c9356544ccd1471e3c428f21662420c0ceb00b (patch) | |
tree | 87a9c6a0a8fb3a953312157b079b047973b79ae0 /Modules/FindPython2.cmake | |
parent | 44de3428597671228c95939c4b509ebaa24f00fe (diff) | |
download | CMake-63c9356544ccd1471e3c428f21662420c0ceb00b.zip CMake-63c9356544ccd1471e3c428f21662420c0ceb00b.tar.gz CMake-63c9356544ccd1471e3c428f21662420c0ceb00b.tar.bz2 |
FindPython*: fix erroneous handling of virtual environments
fixes: #18408
Diffstat (limited to 'Modules/FindPython2.cmake')
-rw-r--r-- | Modules/FindPython2.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindPython2.cmake b/Modules/FindPython2.cmake index 2735a25..998e992 100644 --- a/Modules/FindPython2.cmake +++ b/Modules/FindPython2.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 ^^^^^^^^ |