Skip to content

Commit

Permalink
Updated CMakeLists.txt to produce a versioned .dylib/.so
Browse files Browse the repository at this point in the history
This allows us to version the library as we update the API (and break
compatibility).
  • Loading branch information
cculianu committed Aug 31, 2021
1 parent d1559e4 commit 84d2b20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ add_library(univalue SHARED
lib/univalue_write.cpp
)

set_target_properties(univalue PROPERTIES
SOVERSION ${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}.0
VERSION ${CMAKE_PROJECT_VERSION})

target_include_directories(univalue
PUBLIC
include
Expand Down

0 comments on commit 84d2b20

Please sign in to comment.