mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
On AIX, when AIX_SHARED_LIBRARY_ARCHIVE is off, VERSION and SOVERSION were ignored and only a single `lib<name>.so` was produced. Add the AIX_SHARED_LIBRARY_SYMLINKS target property, initialized by the CMAKE_AIX_SHARED_LIBRARY_SYMLINKS variable, to name the shared object `lib<name>.so.<version>` and create `lib<name>.so.<soversion>` and `lib<name>.so` symlinks, as on other UNIX platforms. When the property is not set, policy CMP0227 selects the default. AIX shared objects have no builtin soname, so a dependent records the name of the file used to link it. Link dependents through the `lib<name>.so.<soversion>` symlink so they need not be rebuilt for a compatible update. If only VERSION is set, link to `lib<name>.so.<version>`. Extend the SharedLibraryArchive test to check the file names, symlinks, and the library name recorded by dependents.