cmake/Help/prop_tgt/VERSION_SOVERSION_EXAMPLE.txt
2024-04-14 22:45:38 +02:00

10 lines
342 B
Plaintext

A common convention is to specify both ``VERSION`` and ``SOVERSION``
such that ``SOVERSION`` matches the first component of ``VERSION``:
.. code-block:: cmake
set_target_properties(mylib PROPERTIES VERSION 1.2.3 SOVERSION 1)
The idea is that breaking changes to the ABI increment both the
``SOVERSION`` and the major ``VERSION`` number.