]> git.saurik.com Git - apt.git/blame - CMake/FindLZMA.cmake
Don't download "optional" files not in Release :/.
[apt.git] / CMake / FindLZMA.cmake
CommitLineData
c799c3ef
JAK
1# - Try to find LZMA
2# Once done, this will define
3#
4# LZMA_FOUND - system has LZMA
5# LZMA_INCLUDE_DIRS - the LZMA include directories
6# LZMA_LIBRARIES - the LZMA library
7find_package(PkgConfig)
8
9pkg_check_modules(LZMA_PKGCONF liblzma)
10
11find_path(LZMA_INCLUDE_DIRS
12 NAMES lzma.h
13 PATHS ${LZMA_PKGCONF_INCLUDE_DIRS}
14)
15
16
17find_library(LZMA_LIBRARIES
18 NAMES lzma
19 PATHS ${LZMA_PKGCONF_LIBRARY_DIRS}
20)
21
22include(FindPackageHandleStandardArgs)
23find_package_handle_standard_args(LZMA DEFAULT_MSG LZMA_INCLUDE_DIRS LZMA_LIBRARIES)
24
25mark_as_advanced(LZMA_INCLUDE_DIRS LZMA_LIBRARIES)