diff options
-rw-r--r-- | kms++/CMakeLists.txt | 5 | ||||
-rw-r--r-- | kms++util/CMakeLists.txt | 5 |
2 files changed, 8 insertions, 2 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 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 |