summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-05-21 14:10:43 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2019-05-21 14:13:27 (GMT)
commit8517b549f44eb41c93eb1c448de176ad4172f083 (patch)
tree5b04ff46e29299b416c85b291b93f72a328f6316 /Modules/FindPython.cmake
parent9f205acefe256ac9707cd500ea1d421916f013cd (diff)
downloadCMake-8517b549f44eb41c93eb1c448de176ad4172f083.zip
CMake-8517b549f44eb41c93eb1c448de176ad4172f083.tar.gz
CMake-8517b549f44eb41c93eb1c448de176ad4172f083.tar.bz2
FindPython: Add policy to manage lookup stratgey default.
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r--Modules/FindPython.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake
index d368ecc..59c286d 100644
--- a/Modules/FindPython.cmake
+++ b/Modules/FindPython.cmake
@@ -144,9 +144,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``.
``Python_FIND_REGISTRY``
On Windows the ``Python_FIND_REGISTRY`` variable determine the order