When the library is created by CMake, it is CMake , which is assigned to it by soversion numbers (according to the project settings ).
When the library was not created by CMake, CMake does not know soversion , so it cannot create symbolic links for you.
If you are worried that CMake actually sets up a symbolic link instead of a file, allow symbolic links before installation, for example, to this question .
Well, you can ask CMake to guess the soversion of the library (for example, by removing symbolic links and checking their names). But why do you need symbolic links?
The main purpose of the soversion symlink is to resolve compatibility issues with the future update library. But updates are possible only when the library is installed by the project that creates it .
If your project installs a library created by another project, it is unlikely that you want to support updates to install the local library. Thus, you do not need to maintain a relationship.
source share