From 0a24a72cad8f9d04820a267aa1ce5bb522d68348 Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Sat, 14 Feb 2026 12:39:39 +0300 Subject: [PATCH] Add soname to shared libraries (#459) --- CMakeLists.txt | 5 +++++ lib/bytes/CMakeLists.txt | 5 +++++ lib/hpke/CMakeLists.txt | 5 +++++ lib/mls_ds/CMakeLists.txt | 5 +++++ lib/mls_vectors/CMakeLists.txt | 5 +++++ lib/tls_syntax/CMakeLists.txt | 5 +++++ 6 files changed, 30 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e6a5b45..f76cd883 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,6 +144,11 @@ target_include_directories(${LIB_NAME} PRIVATE ${JSON_INCLUDE_INTERFACE} ) +#ifdef =mlspp +set_target_properties(${LIB_NAME} PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR}) +#endif install(TARGETS ${LIB_NAME} EXPORT mlspp-targets) diff --git a/lib/bytes/CMakeLists.txt b/lib/bytes/CMakeLists.txt index 556e84f4..3b03f0ee 100644 --- a/lib/bytes/CMakeLists.txt +++ b/lib/bytes/CMakeLists.txt @@ -18,6 +18,11 @@ target_include_directories(${CURRENT_LIB_NAME} $ $ ) +#ifdef =mlspp +set_target_properties(${CURRENT_LIB_NAME} PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR}) +#endif ### ### Install diff --git a/lib/hpke/CMakeLists.txt b/lib/hpke/CMakeLists.txt index 1c8dbca7..6ee4d710 100644 --- a/lib/hpke/CMakeLists.txt +++ b/lib/hpke/CMakeLists.txt @@ -87,6 +87,11 @@ target_include_directories(${CURRENT_LIB_NAME} PRIVATE ${OPENSSL_INCLUDE_DIR} ) +#ifdef =mlspp +set_target_properties(${CURRENT_LIB_NAME} PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR}) +#endif ### ### Install diff --git a/lib/mls_ds/CMakeLists.txt b/lib/mls_ds/CMakeLists.txt index b6440630..4afcff11 100644 --- a/lib/mls_ds/CMakeLists.txt +++ b/lib/mls_ds/CMakeLists.txt @@ -16,6 +16,11 @@ target_include_directories(${CURRENT_LIB_NAME} $ $ ) +#ifdef =mlspp +set_target_properties(${CURRENT_LIB_NAME} PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR}) +#endif ### ### Install diff --git a/lib/mls_vectors/CMakeLists.txt b/lib/mls_vectors/CMakeLists.txt index dedac264..ecacc5e0 100644 --- a/lib/mls_vectors/CMakeLists.txt +++ b/lib/mls_vectors/CMakeLists.txt @@ -18,6 +18,11 @@ target_include_directories(${CURRENT_LIB_NAME} $ $ ) +#ifdef =mlspp +set_target_properties(${CURRENT_LIB_NAME} PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR}) +#endif ### ### Install diff --git a/lib/tls_syntax/CMakeLists.txt b/lib/tls_syntax/CMakeLists.txt index 893d8e8b..dbd3a348 100644 --- a/lib/tls_syntax/CMakeLists.txt +++ b/lib/tls_syntax/CMakeLists.txt @@ -18,6 +18,11 @@ target_include_directories(${CURRENT_LIB_NAME} $ $ ) +#ifdef =mlspp +set_target_properties(${CURRENT_LIB_NAME} PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR}) +#endif ### ### Install