Skip to content

Commit e44e31d

Browse files
authored
Add soversion (yhirose#1209)
1 parent f7b9501 commit e44e31d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ if(HTTPLIB_COMPILE)
172172
$<BUILD_INTERFACE:${_httplib_build_includedir}/httplib.h>
173173
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/httplib.h>
174174
)
175+
set_target_properties(${PROJECT_NAME}
176+
PROPERTIES
177+
VERSION ${${PROJECT_NAME}_VERSION}
178+
SOVERSION ${${PROJECT_NAME}_VERSION_MAJOR}
179+
)
175180
else()
176181
# This is for header-only.
177182
set(_INTERFACE_OR_PUBLIC INTERFACE)

0 commit comments

Comments
 (0)