Alexander Neumann eb895b95aa
[liblzma] use upstream CMakeLists.txt + Add pkgconfig. (#14615)
* [liblzma] use upstream CMakeLists.txt + Add pkgconfig.

* fixing regressions

* add debug suffix. fix pkgconfig

* fix cmake path

* remove empty lines

* fix wrapper

* more fixes

* fix findLibLZMA

* fix patch for static builds
2020-11-20 12:23:19 -08:00

10 lines
254 B
Plaintext

The package liblzma provides CMake targets:
find_package(LibLZMA REQUIRED)
target_link_libraries(main PRIVATE LibLZMA::LibLZMA)
or
find_package(liblzma CONFIG REQUIRED)
target_link_libraries(main PRIVATE liblzma::liblzma)