From c2de1d041ae5ca687b5eac24143666a8adecb2c9 Mon Sep 17 00:00:00 2001 From: cyrozap Date: Fri, 7 Aug 2020 23:19:57 -0500 Subject: [PATCH] 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") --- Source/Core/DiscIO/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DiscIO/CMakeLists.txt b/Source/Core/DiscIO/CMakeLists.txt index 604d9e8914..982619f7b9 100644 --- a/Source/Core/DiscIO/CMakeLists.txt +++ b/Source/Core/DiscIO/CMakeLists.txt @@ -59,7 +59,7 @@ add_library(discio target_link_libraries(discio PUBLIC BZip2::BZip2 - LibLZMA::LibLZMA + lzma zstd PRIVATE