Skip to content

Make versioned the .so libraries #10

Description

@sagitter

Hi all.

please, as stand alone libraries, can you make versioned the GKlib dynamic libraries?

This is simple patch that i'm using for compiling GKlib in Fedora, where GKLIB_VERSION_MAJOR and GKLIB_VERSION are set respectively 0 and 0.0 :

--- a/CMakeLists.orig.txt	2013-03-11 20:50:14.000000000 +0100
+++ b/CMakeLists.txt	2013-03-17 19:53:44.220827579 +0100
@@ -17,6 +17,7 @@
 endif(MSVC)
 
 add_library(GKlib ${GKlib_sources} ${win32_sources})
+set_target_properties(GKlib PROPERTIES LIBRARY_OUTPUT_NAME GKlib SOVERSION ${GKLIB_VERSION_MAJOR} VERSION ${GKLIB_VERSION})
 
 if(UNIX)
   target_link_libraries(GKlib m)
@@ -26,6 +26,6 @@
 add_subdirectory("test")
 
 install(TARGETS GKlib
-  ARCHIVE DESTINATION lib/${LINSTALL_PATH}
-  LIBRARY DESTINATION lib/${LINSTALL_PATH})
+  ARCHIVE DESTINATION lib${LIB_SUFFIX}
+  LIBRARY DESTINATION lib${LIB_SUFFIX})
 install(FILES ${GKlib_includes} DESTINATION include/${HINSTALL_PATH})

Regards.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions