FindPython3: add support for Python3_FIND_ABI under Windows
Documentation says : "So, on Windows systems, when Python3_FIND_ABI is defined, Python distributions from python.org will be found only if value for each flag is OFF or ANY."
I tried to implement a workaround because I need to have pydebug to use pybind11 in Debug mode : Windows Python with Debug Libraries Installed causes linker error
List of problems I found :
- If I set
Python3_FIND_ABI(ON ANY ANY)
,Python3_FIND_UNVERSIONED_NAMES
searchpython
instead ofpythond
/python_d
. -
sys.abiflags
doesn't work for Windows. So don't try to readsys.abiflags
to check if an interpreter is good. Also don't updatePython3_ABIFLAGS
when interpreter has been checked. -
Changed in version 3.8: Default flags became an empty string (m flag for pymalloc has been removed).
System-specific parameters and functions. I didn't do any change about this change.
Edited by LE GARREC Vincent