diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-01-15 15:15:52 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-02-03 11:36:16 +0100 |
commit | 0954c9d5f46b098591d8370544928c2774dc126b (patch) | |
tree | 89d71db860e0b0074198f859fae0bcafff443d28 /src | |
parent | d16f5df4a8f57973b65ee19ba50348bfec6e6128 (diff) | |
download | libayatana-common-0954c9d5f46b098591d8370544928c2774dc126b.tar.gz libayatana-common-0954c9d5f46b098591d8370544928c2774dc126b.tar.bz2 libayatana-common-0954c9d5f46b098591d8370544928c2774dc126b.zip |
Explicitly set ABI_VERSION / API_VERSION and use ABI_VERSION in the .so filename.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 7 |
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) |