diff options
author | Brad King <brad.king@kitware.com> | 2019-05-23 12:52:47 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-05-23 12:59:25 (GMT) |
commit | 5222400d9f574b5f953a2fe1d2c95a9754c683f3 (patch) | |
tree | f771c47eef6ff4d8bbea456bd686ca30119d83f9 /Modules/FindPython.cmake | |
parent | cbd1c5b4ab16fa3e1086417f010e7bbad42cc50d (diff) | |
parent | 8517b549f44eb41c93eb1c448de176ad4172f083 (diff) | |
download | CMake-5222400d9f574b5f953a2fe1d2c95a9754c683f3.zip CMake-5222400d9f574b5f953a2fe1d2c95a9754c683f3.tar.gz CMake-5222400d9f574b5f953a2fe1d2c95a9754c683f3.tar.bz2 |
Merge topic 'FindPython-find_strategy'
8517b549f4 FindPython: Add policy to manage lookup stratgey default.
9f205acefe FindPython: Implement lookup strategies.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3354
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r-- | Modules/FindPython.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake index 36c0611..59c286d 100644 --- a/Modules/FindPython.cmake +++ b/Modules/FindPython.cmake @@ -137,6 +137,19 @@ Hints * If set to TRUE, search **only** for static libraries. * If set to FALSE, search **only** for shared libraries. +``Python_FIND_STRATEGY`` + This variable defines how lookup will be done. + The ``Python_FIND_STRATEGY`` variable can be set to empty or one of the + following: + + * ``VERSION``: Try to find the most recent version in all specified + locations. + 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 of preference between registry and environment variables. |