Skip to content

Commit 669b76e

Browse files
Merge pull request #370 from bkmgit/patch-1
Add soname to shared library
2 parents c6b09fa + 876eb62 commit 669b76e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,11 @@ endif()
9595
target_include_directories(qthread
9696
PRIVATE "../include"
9797
)
98-
set_target_properties(qthread PROPERTIES C_VISIBILITY_PRESET hidden)
99-
98+
set_target_properties(
99+
qthread
100+
PROPERTIES C_VISIBILITY_PRESET hidden
101+
VERSION ${PROJECT_VERSION}
102+
SOVERSION ${PROJECT_VERSION_MAJOR})
100103
# Link pthreads.
101104
target_link_libraries(qthread PUBLIC Threads::Threads)
102105

0 commit comments

Comments
 (0)