Versions for shared libs specified
authorVitaly Kirsanov <krokoziabla@intel.com>
Fri, 12 Apr 2019 19:16:45 +0000 (22:16 +0300)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 May 2019 01:41:48 +0000 (11:41 +1000)
src/libFLAC++/CMakeLists.txt
src/libFLAC/CMakeLists.txt

index 8303142..f6d6110 100644 (file)
@@ -38,7 +38,10 @@ target_include_directories(FLACXX INTERFACE
     "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
     "$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include>")
 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}/"
index 13f1475..8fe2acd 100644 (file)
@@ -122,7 +122,10 @@ target_link_libraries(FLAC PRIVATE
     $<TARGET_NAME_IF_EXISTS:Ogg::Ogg>
     $<TARGET_NAME_IF_EXISTS:FLAC-asm>
     $<$<BOOL:${HAVE_LROUND}>: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}/"