1
0

110-liblzma.patch 741 B

1234567891011121314151617
  1. --- a/Modules/FindLibLZMA.cmake
  2. +++ b/Modules/FindLibLZMA.cmake
  3. @@ -58,7 +58,13 @@ The following variables are provided for
  4. #]=======================================================================]
  5. -find_path(LIBLZMA_INCLUDE_DIR lzma.h )
  6. +if(UNIX)
  7. + find_package(PkgConfig QUIET)
  8. + pkg_search_module(PC_liblzma liblzma)
  9. +endif()
  10. +
  11. +find_path(LIBLZMA_INCLUDE_DIR lzma.h HINTS ${PC_liblzma_INCLUDEDIR} ${PC_liblzma_INCLUDE_DIRS})
  12. +find_library(LIBLZMA_LIBRARY NAMES lzma HINTS ${PC_liblzma_LIBDIR} ${PC_liblzma_LIBRARY_DIRS})
  13. if(NOT LIBLZMA_LIBRARY)
  14. find_library(LIBLZMA_LIBRARY_RELEASE NAMES lzma liblzma NAMES_PER_DIR PATH_SUFFIXES lib)
  15. find_library(LIBLZMA_LIBRARY_DEBUG NAMES lzmad liblzmad NAMES_PER_DIR PATH_SUFFIXES lib)