Author: Séverin Lemaignan <severin@guakamole.org>,
        Pierre Gruet <pgt@debian.org>
Reviewed-by: Hugo Lefeuvre <hle@debian.org>
Description: Fix library SONAME
 Set library SOVERSION to the value that is specified in debian/rules.
 Using the major version number alone is not sufficient as we have seen ABI
 breaks within the same major version.
Bug-Debian: http://bugs.debian.org/894508
Forwarded: not-needed
Last-Update: 2022-05-02
--- a/dlib/CMakeLists.txt
+++ b/dlib/CMakeLists.txt
@@ -943,7 +943,8 @@
          set (pkg_config_dlib_needed_includes "${pkg_config_dlib_needed_includes} -I${ITR}")
       endforeach()
       set_target_properties(dlib PROPERTIES
-         VERSION ${VERSION})
+         VERSION ${VERSION}
+         SOVERSION ${SOVERSION})
       install(TARGETS dlib
          EXPORT dlib 
          RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # Windows considers .dll to be runtime artifacts
