From 8517b549f44eb41c93eb1c448de176ad4172f083 Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Tue, 21 May 2019 16:10:43 +0200 Subject: FindPython: Add policy to manage lookup stratgey default. --- Modules/FindPython2.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Modules/FindPython2.cmake') diff --git a/Modules/FindPython2.cmake b/Modules/FindPython2.cmake index eea4d292b2..8a633e0d00 100644 --- a/Modules/FindPython2.cmake +++ b/Modules/FindPython2.cmake @@ -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``. ``Python2_FIND_REGISTRY`` On Windows the ``Python2_FIND_REGISTRY`` variable determine the order -- cgit v1.2.1