FindPython: Add policy to manage lookup stratgey default.

This commit is contained in:
Marc Chevrier
2019-05-21 16:10:43 +02:00
parent 9f205acefe
commit 8517b549f4
9 changed files with 58 additions and 5 deletions

View File

@@ -145,9 +145,11 @@ Hints
* ``VERSION``: Try to find the most recent version in all specified
locations.
This is the default.
This is the default if policy :policy:`CMP0094` is undefined or set to
``OLD``.
* ``LOCATION``: Stops lookup as soon as a version satisfying version
constraints is founded.
This is the default if policy :policy:`CMP0094` is set to ``NEW``.
``Python3_FIND_REGISTRY``
On Windows the ``Python3_FIND_REGISTRY`` variable determine the order