Skip to content

FindPython: Add lookup strategies

Add variable Python*_FIND_STRATEGY to manage two different lookup:

  • VERSION: try to find the highest version in all locations. This is the "legacy" behavior
  • LOCATION: Stops lookup as soon as a version satisfying version constraints is founded.

Introduce a policy to change default lookup behavior from VERSION to LOCATION.

Fixes: #19159 (closed)

Edited by Brad King

Merge request reports