CMake: restore clamunrar SO version, match clamav

The libclamunrar (and libclamunrar_iface) SO versions tracked
libclamav's SO version in the old Autotools build system.

We accidentally rolled it backwards, setting it to be similar to UnRAR's
project version. Since the official UnRAR project doesn't have a Unix SO
version that we "should" match, and to prevent the theoretical
possibility of having a collision if an old and new clamav were
installed on the same box, we should make libclamunrar's version track
libclamav as it was before (and before 0.104 is released with CMake
being the stable, and only, build system).
This commit is contained in:
Micah Snyder 2021-08-21 17:55:58 -07:00 committed by Micah Snyder
parent 382ac2764c
commit ac8f7c17ef

View file

@ -67,7 +67,8 @@ if(ENABLE_SHARED_LIB)
# The unrar shared library.
add_library( clamunrar SHARED )
set_target_properties(clamunrar PROPERTIES
VERSION "5.7.5" SOVERSION 5)
VERSION ${LIBCLAMAV_VERSION}
SOVERSION ${LIBCLAMAV_SOVERSION})
target_sources( clamunrar
PRIVATE
${UNRAR_SOURCES}