Linux: explicitly link in zlib

Prevent undefined reference to inflateEnd when statically linking
Qt under rpi-imager embedded.
This commit is contained in:
Floris Bos 2021-11-18 11:35:32 +01:00
parent 99a9fefb0b
commit 08b7398e6b

View file

@ -38,6 +38,10 @@ elseif (UNIX)
else()
message("DBUS not found. Disabling udisks2 support")
endif()
find_package(ZLIB)
if(ZLIB_FOUND)
set(EXTRALIBS ${EXTRALIBS} ZLIB::ZLIB)
endif()
elseif (WIN32)
set(DEPENDENCIES acceleratedcryptographichash.cpp dependencies/mountutils/src/windows/functions.cpp dependencies/drivelist/src/windows/list.cpp
windows/winfile.cpp windows/winfile.h