diff options
author | Matt Hoosier <matt.hoosier@garmin.com> | 2019-11-19 04:51:05 -0600 |
---|---|---|
committer | Matt Hoosier <matt.hoosier@garmin.com> | 2019-11-19 04:51:05 -0600 |
commit | 1132d14177277b4e20cb7e23653e252ff85b9845 (patch) | |
tree | 846dcde980373b50e38266d60af3ef8ef6471ae0 /kms++util | |
parent | cc6e6b22af6b962a10eb862986ecbe1f135f2f7d (diff) |
Set a dummy version number on the shared libraries
This makes package managers happier when the software is built
as a dynamic-library.
Signed-off-by: Matt Hoosier <matt.hoosier@garmin.com>
Diffstat (limited to 'kms++util')
-rw-r--r-- | kms++util/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kms++util/CMakeLists.txt b/kms++util/CMakeLists.txt index 70f3b17..5bbf596 100644 --- a/kms++util/CMakeLists.txt +++ b/kms++util/CMakeLists.txt @@ -14,8 +14,11 @@ if (KMSXX_ENABLE_THREADING) add_definitions(-DHAS_PTHREAD) endif() +# Set a dummy SOVERSION just to avoid havig a naked .so file in the filesystem. +# This version number doesn't make any promise about API/ABI stability. set_target_properties(kms++util PROPERTIES - PUBLIC_HEADER "${PUB_HDRS}") + PUBLIC_HEADER "${PUB_HDRS}" + SOVERSION 0) install(TARGETS kms++util LIBRARY DESTINATION lib |