8000 Set library VERSION and SOVERSION · Dadie/docopt.cpp@6968257 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6968257

Browse files
eaaltonenjaredgrubb
authored andcommitted
Set library VERSION and SOVERSION
With soversion and version specified, `install` target will install the library with the specified version and also create the proper symlink.
1 parent 7e48768 commit 6968257

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ else()
5050
set_target_properties(docopt_o PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
5151

5252
add_library(docopt SHARED $<TARGET_OBJECTS:docopt_o>)
53+
set_target_properties(docopt PROPERTIES
54+
VERSION ${PROJECT_VERSION}
55+
SOVERSION ${PROJECT_VERSION_MAJOR}
56+
)
5357
add_library(docopt_s STATIC $<TARGET_OBJECTS:docopt_o>)
5458
endif()
5559

0 commit comments

Comments
 (0)
0