Try to find BZip2
Added in version 3.12.
This module defines IMPORTED target BZip2::BZip2, if BZip2 has been found.
This module defines the following variables:
BZIP2_FOUND system has BZip2
BZIP2_INCLUDE_DIRS Added in version 3.12: the BZip2 include directories
BZIP2_LIBRARIES Link these to use BZip2
BZIP2_NEED_PREFIX this is set if the functions are prefixed with BZ2_
BZIP2_VERSION Added in version 3.26: the version of BZip2 found.
See also legacy variable BZIP2_VERSION_STRING.
The following cache variables may also be set:
BZIP2_INCLUDE_DIR the directory containing the BZip2 headers
BZIP2_LIBRARY_RELEASE the path to the BZip2 library for release configurations
BZIP2_LIBRARY_DEBUG the path to the BZip2 library for debug configurations
The following variables are provided for backward compatibility:
BZIP2_VERSION_STRING the version of BZip2 found.
Changed in version 3.26: Superseded by BZIP2_VERSION.
© 2000–2024 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.31/module/FindBZip2.html