summaryrefslogtreecommitdiff
path: root/kms++
diff options
context:
space:
mode:
authorMatt Hoosier <matt.hoosier@garmin.com>2019-11-19 04:51:05 -0600
committerMatt Hoosier <matt.hoosier@garmin.com>2019-11-19 04:51:05 -0600
commit1132d14177277b4e20cb7e23653e252ff85b9845 (patch)
tree846dcde980373b50e38266d60af3ef8ef6471ae0 /kms++
parentcc6e6b22af6b962a10eb862986ecbe1f135f2f7d (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++')
-rw-r--r--kms++/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/kms++/CMakeLists.txt b/kms++/CMakeLists.txt
index 1ca8815..e095ce0 100644
--- a/kms++/CMakeLists.txt
+++ b/kms++/CMakeLists.txt
@@ -24,8 +24,11 @@ target_include_directories(kms++ PUBLIC
target_link_libraries(kms++ ${LIBDRM_LIBRARIES} ${LIBDRM_OMAP_LIBRARIES} fmt::fmt)
+# Set a dummy SOVERSION just to avoid having a naked .so file in the filesystem.
+# This version number doesn't make any promise about API/ABI stability.
set_target_properties(kms++ PROPERTIES
- PUBLIC_HEADER "${PUB_HDRS}")
+ PUBLIC_HEADER "${PUB_HDRS}"
+ SOVERSION 0)
install(TARGETS kms++
LIBRARY DESTINATION lib