CMake: fix SONAME for MZ_COMPAT

zlib's minizip has SONAME 1. MZ_COMPAT intends to provide ABI and API compatibility,
so its SONAME should match.

The layout with this is:
```
libminizip.so -> libminizip.so.1
libminizip.so.1 -> libminizip.so.4.0.0
libminizip.so.4.0.0
```

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2023-06-16 03:27:58 +01:00 committed by Nathan Moinvaziri
parent 57be074f6f
commit d14fb2f294

View File

@ -607,6 +607,8 @@ endif()
# Include compatibility layer
if(MZ_COMPAT)
set(SOVERSION "1")
set(FILE_H "zip.h")
set(MZ_COMPAT_FILE "MZ_COMPAT_ZIP")
configure_file(mz_compat_shim.h.in zip.h)