File: FindBZip2.cmake

package info (click to toggle)
kodi-inputstream-ffmpegdirect 20.5.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,560 kB
  • sloc: cpp: 6,657; xml: 140; sh: 45; python: 15; makefile: 10
file content (21 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# - Try to find bzip2
# Once done this will define
#
# BZIP2_FOUND - system has bzip2
# BZIP2_INCLUDE_DIRS - the bzip2 include directory
# BZIP2_LIBRARIES - The bzip2 libraries

find_package(PkgConfig)

if(PKG_CONFIG_FOUND)
  pkg_check_modules(PC_BZIP2 bzip2 QUIET)
endif()

find_path(BZIP2_INCLUDE_DIRS bzlib.h PATHS ${PC_BZIP2_INCLUDEDIR})
find_library(BZIP2_LIBRARIES bz2 PATHS ${PC_BZIP2_LIBDIR})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(BZip2 DEFAULT_MSG BZIP2_INCLUDE_DIRS BZIP2_LIBRARIES)

mark_as_advanced(BZIP2_INCLUDE_DIRS BZIP2_LIBRARIES)