Skip to content

Commit

Permalink
Merge pull request #6 from bkmgit/bkmgit-patch-1
Browse files Browse the repository at this point in the history
Add soname to shared library
  • Loading branch information
Syndace authored Aug 10, 2023
2 parents 8ab957a + be70ee8 commit 1140086
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.5)
project(libxeddsa)
project(libxeddsa VERSION 2.0.0)

include(CTest)

Expand Down Expand Up @@ -110,6 +110,11 @@ install(TARGETS xeddsa_static)
if (NOT DEFINED EMSCRIPTEN)
add_library(xeddsa_dynamic SHARED $<TARGET_OBJECTS:xeddsa_objects>)
set_target_properties(xeddsa_dynamic PROPERTIES OUTPUT_NAME xeddsa)
set_target_properties(xeddsa_dynamic PROPERTIES
VERSION ${CMAKE_PROJECT_VERSION}
SOVERSION ${CMAKE_PROJECT_VERSION_MAJOR}
)

target_link_libraries(xeddsa_dynamic PUBLIC
xeddsa_objects
crypto_sign_objects
Expand Down

0 comments on commit 1140086

Please sign in to comment.