Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make versioned the .so libraries #10

Open
sagitter opened this issue Jan 24, 2021 · 0 comments
Open

Make versioned the .so libraries #10

sagitter opened this issue Jan 24, 2021 · 0 comments

Comments

@sagitter
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant