Skip to content

Commit

Permalink
Fix builds with system LZMA when using versions of CMake before 3.14
Browse files Browse the repository at this point in the history
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: b59ef81 ("WIA: Implement bzip2, LZMA, and LZMA2 decompression")
  • Loading branch information
cyrozap committed Aug 11, 2020
1 parent 655e924 commit c2de1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/DiscIO/CMakeLists.txt
Expand Up @@ -59,7 +59,7 @@ add_library(discio
target_link_libraries(discio
PUBLIC
BZip2::BZip2
LibLZMA::LibLZMA
lzma
zstd

PRIVATE
Expand Down

0 comments on commit c2de1d0

Please sign in to comment.