FindPython*: fix erroneous handling of virtual environments

fixes: #18408
This commit is contained in:
Marc Chevrier
2018-10-02 11:09:45 +02:00
parent 44de342859
commit 63c9356544
4 changed files with 33 additions and 11 deletions

View File

@@ -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
^^^^^^^^