Add ENABLE_COMPLEX_DEPS flag
[platform/upstream/libsolv.git] / cmake / modules / FindLZMA.cmake
1 # - Find lzma
2 # Find the native LZMA headers and library
3 #
4 #  LZMA_INCLUDE_DIR    - where to find lzma.h, etc.
5 #  LZMA_LIBRARIES      - List of libraries when using liblzma.
6 #  LZMA_FOUND          - True if liblzma found.
7
8 IF (LZMA_INCLUDE_DIR)
9   # Already in cache, be silent
10   SET(LZMA_FIND_QUIETLY TRUE)
11 ENDIF (LZMA_INCLUDE_DIR)
12
13 FIND_PATH(LZMA_INCLUDE_DIR lzma.h)
14 FIND_LIBRARY(LZMA_LIBRARY NAMES lzma liblzma)
15
16 # handle the QUIETLY and REQUIRED arguments and set LZMA_FOUND to TRUE if 
17 # all listed variables are TRUE
18 INCLUDE(FindPackageHandleStandardArgs)
19 FIND_PACKAGE_HANDLE_STANDARD_ARGS(LZMA DEFAULT_MSG LZMA_LIBRARY LZMA_INCLUDE_DIR)
20
21 IF(LZMA_FOUND)
22   SET( LZMA_LIBRARIES ${LZMA_LIBRARY} )
23 ELSE(LZMA_FOUND)
24   SET( LZMA_LIBRARIES )
25 ENDIF(LZMA_FOUND)