Starting with Python 3.11, the definition `HAVE_LIBB2` was introduced to support building the `_blake2` extension against the `libb2` library. See python/cpython@b16b6bb8dac ("bpo-47095: Use libb2 to provide blake2 implementation (GH-32059)", 2022-03-26) In additional of building against the built-in implementation, the CMake build-system should be updated to support this. ---- Related issues and pull requests: * https://github.com/python-cmake-buildsystem/python-cmake-buildsystem/issues/350 * https://github.com/python-cmake-buildsystem/python-cmake-buildsystem/pull/387