1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-16 13:58:22 +01:00

Add ZLIB linking workaround for broken Taglib pkgconfig versions (#678)

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2020-07-23 13:44:21 +02:00 committed by GitHub
parent 90ec6f0dc7
commit c1d9d431fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -534,6 +534,12 @@ TARGET_LINK_LIBRARIES(${TOMAHAWK_LIBRARY} PRIVATE
# TagLib
target_link_libraries(${TOMAHAWK_LIBRARY} LINK_PUBLIC Taglib::Taglib)
# Necessary workaround until we can depend on >1.11.1
if (NOT Taglib_VERSION VERSION_GREATER 1.11.1)
if(ZLIB_FOUND)
target_link_libraries(${TOMAHAWK_LIBRARY} PUBLIC -lz)
endif()
endif()
INSTALL( TARGETS ${TOMAHAWK_LIBRARY}
EXPORT TomahawkLibraryDepends