From 2e9c119dca10f5f27ea7866700a6ce240a1c50a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Tue, 31 Jan 2023 23:45:48 -0500 Subject: [PATCH] build/cmake: add SOVERSION for c binding --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdc438b1..3bdd7cbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -398,6 +398,7 @@ if (OPENDHT_C) ) target_compile_definitions(opendht-c PRIVATE OPENDHT_C_BUILD) target_link_libraries(opendht-c PRIVATE opendht) + set_target_properties (opendht-c PROPERTIES SOVERSION ${opendht_VERSION_MAJOR} VERSION ${opendht_VERSION}) install (TARGETS opendht-c DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht-c) endif () -- GitLab