Skip to content

FindPythonLibs: Ignore trailing chars in version

Felix Geyer requested to merge debfx/cmake:patch-2 into master

Python sometimes includes trailing chars after the 3 digit PY_VERSION string. For example: "3.6.0a4+" (after alpha 4) This is incompatible with CMake's version format for version comparison.

This has been prompted by https://bugs.debian.org/867514

Merge request reports