FindBoost does not find versioned python if versions are separated by '.'
Copying the relevant comment from https://bugs.gentoo.org/660980#c1 :
Actually the previous assertion was wrong, the support is not version specific. I now rather think the issue is that Gentoo uses -python-X.Y library suffixes, while CMake checks for -python-XY only:
# Gentoo
list(APPEND _Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT_NAME "${COMPONENT_UNVERSIONED}-${COMPONENT_PYTHON_VERSION_MAJOR}${COMPONENT_PYTHON_VERSION_MINOR}")
This should be:
# Gentoo
list(APPEND _Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT_NAME "${COMPONENT_UNVERSIONED}-${COMPONENT_PYTHON_VERSION_MAJOR}.${COMPONENT_PYTHON_VERSION_MINOR}")
There seems to be the additional issue that requesting "python" as component is not enough and one needs to select "pythonXY" instead (have not tried).
Edited by Craig Scott