Skip to content

Commit

Permalink
Fix build: add zlib to deps where it's used
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthGandalf authored and hatstand committed Dec 25, 2022
1 parent 9ef681b commit 65319d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/qtiocompressor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ ADD_LIBRARY(qtiocompressor STATIC
${IOCOMPRESSOR-SOURCES-MOC}
)

target_link_libraries(qtiocompressor Qt5::Core)
target_link_libraries(qtiocompressor Qt5::Core ${ZLIB_LIBRARIES})
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ pkg_check_modules(LIBPULSE libpulse)
pkg_check_modules(LIBXML libxml-2.0)
pkg_check_modules(TAGLIB taglib)

if (WIN32)
find_package(ZLIB REQUIRED)
endif (WIN32)
find_package(ZLIB REQUIRED)

find_library(LASTFM5_LIBRARIES lastfm5)
find_path(LASTFM5_INCLUDE_DIRS lastfm5/ws.h)
Expand Down
2 changes: 0 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,6 @@ target_link_libraries(clementine_lib
${SQLITE_LIBRARIES}

Qocoa
z
)

link_directories(
Expand Down Expand Up @@ -1351,7 +1350,6 @@ target_link_libraries(clementine_lib qsqlite)
if (WIN32)
target_link_libraries(clementine_lib
protobuf
${ZLIB_LIBRARIES}
tinysvcmdns
dsound
)
Expand Down

0 comments on commit 65319d4

Please sign in to comment.