Fix private linking of LibLZMA

The current `liblzma` makes linke look for `libliblzma` as the `lib` prefix is added automatically. This is breaking static linking of library when using pkg-config for resolving dependencies.
This commit is contained in:
Marek Rusinowski 2023-01-06 22:07:23 +01:00 committed by Nathan Moinvaziri
parent 94a9733eab
commit 41c93fb2d5

View File

@ -305,7 +305,7 @@ if(MZ_LZMA)
list(APPEND MINIZIP_LIB ${LIBLZMA_LIBRARIES})
list(APPEND MINIZIP_LBD ${LIBLZMA_LIBRARY_DIRS})
set(PC_PRIVATE_LIBS "${PC_PRIVATE_LIBS} -lliblzma")
set(PC_PRIVATE_LIBS "${PC_PRIVATE_LIBS} -llzma")
elseif(MZ_FETCH_LIBS)
set(BUILD_TESTING OFF CACHE BOOL "Build lzma tests" FORCE)