Commit Graph

3 Commits

Author SHA1 Message Date
Marc Chevrier f5ccd390f0 FindPython: ensure user's policies are respected
Do not set the policy version before recording our internal macros such
as `__Python_add_library`.  Otherwise callers get our policy version
instead of theirs.  Instead just set the specific policies we need.

Also fix one case in our test suite where we were accidentally
relying on the policy version to be set by `FindPython`.

Fixes: #21042
2020-08-07 09:24:18 -04:00
Marc Chevrier 42f591060b FindPython: add Python_FIND_ABI hint.
This variable will enable to specify will ABIs will be searched.
2019-06-24 12:00:21 +02:00
Kyle Edwards 8c63fbc765 FindPython: Support script mode
Fixes: #18827
2019-01-23 13:51:09 -05:00