mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Do not set SONAME for MODULE library targets (#15705)
The SONAME field is only useful for shared libraries that application link against.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
NO_SONAME
|
||||
---------
|
||||
|
||||
Whether to set "soname" when linking a shared library or module.
|
||||
Whether to set "soname" when linking a shared library.
|
||||
|
||||
Enable this boolean property if a generated shared library or module
|
||||
Enable this boolean property if a generated shared library
|
||||
should not have "soname" set. Default is to set "soname" on all
|
||||
shared libraries and modules as long as the platform supports it.
|
||||
shared libraries as long as the platform supports it.
|
||||
Generally, use this property only for leaf private libraries or
|
||||
plugins. If you use it on normal shared libraries which other targets
|
||||
link against, on some platforms a linker will insert a full path to
|
||||
|
||||
7
Help/release/dev/modules-no-soname.rst
Normal file
7
Help/release/dev/modules-no-soname.rst
Normal file
@@ -0,0 +1,7 @@
|
||||
modules-no-soname
|
||||
-----------------
|
||||
|
||||
* The ``SONAME`` field is no longer set for ``MODULE`` libraries
|
||||
created with the :command:`add_library` command. ``MODULE``
|
||||
libraries are meant for explicit dynamic loading at runtime.
|
||||
They cannot be linked so ``SONAME`` is not useful.
|
||||
Reference in New Issue
Block a user