From aa96297d78646163f2920afbcffeea47189933e1 Mon Sep 17 00:00:00 2001 From: Vitaly Kirsanov Date: Fri, 12 Apr 2019 22:16:45 +0300 Subject: [PATCH] Versions for shared libs specified --- src/libFLAC++/CMakeLists.txt | 5 ++++- src/libFLAC/CMakeLists.txt | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/libFLAC++/CMakeLists.txt b/src/libFLAC++/CMakeLists.txt index 83031420..f6d61107 100644 --- a/src/libFLAC++/CMakeLists.txt +++ b/src/libFLAC++/CMakeLists.txt @@ -38,7 +38,10 @@ target_include_directories(FLACXX INTERFACE "$" "$") target_link_libraries(FLACXX PRIVATE FLAC) -set_target_properties(FLACXX PROPERTIES CXX_VISIBILITY_PRESET hidden) +set_target_properties(FLACXX PROPERTIES + CXX_VISIBILITY_PRESET hidden + VERSION 6.3.0 + SOVERSION 6) install(TARGETS FLACXX FLACXX-static EXPORT targets ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}/" diff --git a/src/libFLAC/CMakeLists.txt b/src/libFLAC/CMakeLists.txt index 13f14751..8fe2acd0 100644 --- a/src/libFLAC/CMakeLists.txt +++ b/src/libFLAC/CMakeLists.txt @@ -122,7 +122,10 @@ target_link_libraries(FLAC PRIVATE $ $ $<$:m>) -set_target_properties(FLAC PROPERTIES C_VISIBILITY_PRESET hidden) +set_target_properties(FLAC PROPERTIES + C_VISIBILITY_PRESET hidden + VERSION 8.3.0 + SOVERSION 8) install(TARGETS FLAC FLAC-static EXPORT targets ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}/"