On Wed, 22 Mar 2023 at 21:24, Francesco Pretto <cez...@gmail.com> wrote: > There will be the actual libpodofo.so.X and a single symlink > libpodofo.so pointing to that, which is what CMake seems to support > without much burden.
@zyx, @Mattia I was actually wrong with this regard: when setting target property VERSION[1] together with SOVERSION[2], CMake will behave exactly as other build systems projects during install and produce the following files: libpodofo.so -> libpodofo.so.1 libpodofo.so.1 -> libpodofo.so.0.10.0 libpodofo.so.0.10.0 # The actual library $ readelf -d libpodofo.so.0.10.0 | grep SONAME 0x000000000000000e (SONAME) Library soname: [libpodofo.so.1] So the full library versioning is preserved in the final library file, but it is not hard checked for linking, with the latter checking what specified by SONAME instead. I guess in the end this is what everyone wanted. So setting SOVERSION to a single number did the trick and everybody should be happy now. Sorry for the confusion and the wrong information reported. Cheers, Francesco [1] https://cmake.org/cmake/help/latest/prop_tgt/VERSION.html [2] https://cmake.org/cmake/help/latest/prop_tgt/SOVERSION.html _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users