Skip to content

Commit aafaf36

Browse files
authored
Merge pull request #141 from tobiasherzke/soname
Introduce soname to indicate ABI version of shared library
2 parents cce79e2 + dee1933 commit aafaf36

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
@@ -6,6 +6,9 @@ project (liblsl
66
HOMEPAGE_URL "https://github.com/sccn/liblsl"
77
)
88

9+
# API version, to be incremented on backwards-incompatible ABI changes
10+
set(LSL_ABI_VERSION 2)
11+
912
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
1013
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
1114
if(NOT MSVC_VERSION VERSION_LESS 1700)
@@ -239,6 +242,7 @@ target_include_directories(lsl INTERFACE
239242
)
240243
set_target_properties(lsl PROPERTIES
241244
VERSION ${liblsl_VERSION_MAJOR}.${liblsl_VERSION_MINOR}.${liblsl_VERSION_PATCH}
245+
SOVERSION ${LSL_ABI_VERSION}
242246
)
243247

244248
# enable some additional expensive compiler optimizations

0 commit comments

Comments
 (0)