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:
parent
90ec6f0dc7
commit
c1d9d431fd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user