aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 15:15:52 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 15:16:12 +0100
commitdc7ae44a907e6338e8bef28a2f35130ef6d09739 (patch)
tree87384b1f70fbadd032e6eae55f04c80a83d3108c /src
parent3cc2c952f3ec6d93649328a550f3ec5d10b238e2 (diff)
downloadlibayatana-common-dc7ae44a907e6338e8bef28a2f35130ef6d09739.tar.gz
libayatana-common-dc7ae44a907e6338e8bef28a2f35130ef6d09739.tar.bz2
libayatana-common-dc7ae44a907e6338e8bef28a2f35130ef6d09739.zip
Explicitly set ABI_VERSION / API_VERSION and use ABI_VERSION in the .so filename.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
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)