From e44e31dd5bcc05d18aef91c35c64bbc3980d0b07 Mon Sep 17 00:00:00 2001 From: Alexandre Bouvier Date: Fri, 4 Mar 2022 03:06:08 +0100 Subject: [PATCH] Add soversion (#1209) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03943da..f889d1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,6 +172,11 @@ if(HTTPLIB_COMPILE) $ $ ) + set_target_properties(${PROJECT_NAME} + PROPERTIES + VERSION ${${PROJECT_NAME}_VERSION} + SOVERSION ${${PROJECT_NAME}_VERSION_MAJOR} + ) else() # This is for header-only. set(_INTERFACE_OR_PUBLIC INTERFACE)