Skip to content

Commit 3317188

Browse files
authored
Add version/soversion to shared library (#141)
1 parent 06642c1 commit 3317188

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ project(trantor)
44
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules/)
55

66
set(TRANTOR_MAJOR_VERSION 1)
7-
set(TRANTOR_MINOR_VERSION 1)
8-
set(TRANTOR_PATCH_VERSION 1)
7+
set(TRANTOR_MINOR_VERSION 4)
8+
set(TRANTOR_PATCH_VERSION 0)
99
set(TRANTOR_VERSION
1010
${TRANTOR_MAJOR_VERSION}.${TRANTOR_MINOR_VERSION}.${TRANTOR_PATCH_VERSION})
1111

@@ -27,6 +27,9 @@ if(BUILD_TRANTOR_SHARED)
2727
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}")
2828
endif("${isSystemDir}" STREQUAL "-1")
2929
add_library(${PROJECT_NAME} SHARED)
30+
set_target_properties(${PROJECT_NAME} PROPERTIES
31+
VERSION ${TRANTOR_VERSION}
32+
SOVERSION ${TRANTOR_MAJOR_VERSION})
3033
if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
3134
# Ignore MSVC C4251 and C4275 warning of exporting std objects with no dll export
3235
# We export class to facilitate maintenance, thus if you compile

0 commit comments

Comments
 (0)