Fix builds with system LZMA when using versions of CMake before 3.14

The "FindLibLZMA.cmake" module in CMake versions prior to 3.14 do not
set an alias like how Externals/liblzma/CMakeLists.txt does, so builds
performed using one of those older CMake versions will fail if the
system LZMA library is detected. To fix this, we need to link against
"lzma" instead of "LibLZMA::LibLZMA".

Fixes: b59ef81a7e ("WIA: Implement bzip2, LZMA, and LZMA2 decompression")
This commit is contained in:
cyrozap 2020-08-07 23:19:57 -05:00
parent 655e92478a
commit c2de1d041a
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ add_library(discio
target_link_libraries(discio
PUBLIC
BZip2::BZip2
LibLZMA::LibLZMA
lzma
zstd
PRIVATE