cmake: Fix shared library versioning on NetBSD

This commit is contained in:
Hennadii Stepanov
2026-06-09 13:23:15 +01:00
parent 8a0f4002c7
commit a401c5145a

View File

@@ -18,6 +18,14 @@ function(set_libtool_abi_version target current revision age)
SOVERSION ${_major}
VERSION ${_major}.${age}.${revision}
)
elseif(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
# version_type = sunos
# major = $current
# versuffix = $current.$revision
set_target_properties(${target} PROPERTIES
SOVERSION ${current}
VERSION ${current}.${revision}
)
elseif(APPLE)
# version_type = darwin
# major = $current - $age