From dc7ae44a907e6338e8bef28a2f35130ef6d09739 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 15 Jan 2021 15:15:52 +0100 Subject: Explicitly set ABI_VERSION / API_VERSION and use ABI_VERSION in the .so filename. --- src/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5dce006..4a6a5aa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,6 +16,13 @@ set(PUBLIC_HEADERS utils.h ) +set_target_properties(ayatana-common + PROPERTIES + VERSION ${API_VERSION}.0.0 + SOVERSION ${ABI_VERSION} + PUBLIC_HEADER "${PUBLIC_HEADERS}" +) + configure_file(libayatana-common.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libayatana-common.pc @ONLY) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libayatana-common.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) -- cgit v1.2.3