Skip to content

Make it possible to find `Boost::python` w/ various version suffixes

Alex Turbov requested to merge (removed):FindBoost-Python-fixes into master

Linux distributions may use different naming conventions regarding Boost Python library. Here is few cases:

  • in Gentoo it has libboost_python-X.Y.*, where X.Y is a major+minor Python version;
  • Debian/Ubuntu based distros name it as libboost_python-pyXY.*;
  • some other RPMs can have libboost_pythonX.*

To address that differences a new variable was introduced: Boost_PYTHON_VERSION_TAG, so caller may specify a suffix he has in a target distribution, so finder would be able to find and import Boost::python correctly.

Merge request reports