diff --git a/3rdparty/qtiocompressor/CMakeLists.txt b/3rdparty/qtiocompressor/CMakeLists.txt index e908baabf..98d6445f8 100644 --- a/3rdparty/qtiocompressor/CMakeLists.txt +++ b/3rdparty/qtiocompressor/CMakeLists.txt @@ -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}) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb50b239f..8a843ae32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9609171ff..ead2df889 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1268,7 +1268,6 @@ target_link_libraries(clementine_lib ${SQLITE_LIBRARIES} Qocoa - z ) link_directories( @@ -1351,7 +1350,6 @@ target_link_libraries(clementine_lib qsqlite) if (WIN32) target_link_libraries(clementine_lib protobuf - ${ZLIB_LIBRARIES} tinysvcmdns dsound )