From 2cc8f7c160a723c9e68f5ac2d9452440489051f9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 3 Aug 2012 17:29:42 +0400 Subject: [PATCH] Fix shared libraries versions. --- lib/CMakeLists.txt | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 028799118..46f7f9fd5 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -100,9 +100,13 @@ TARGET_LINK_LIBRARIES(rspamdclient rspamd-util) TARGET_LINK_LIBRARIES(rspamdclient_static ${CMAKE_REQUIRED_LIBRARIES}) TARGET_LINK_LIBRARIES(rspamdclient_static ${GLIB2_LIBRARIES}) -SET_TARGET_PROPERTIES(rspamdclient PROPERTIES VERSION ${RSPAMD_VERSION}) + IF(NOT DEBIAN_BUILD) -SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES VERSION ${RSPAMD_VERSION}) + SET_TARGET_PROPERTIES(rspamdclient PROPERTIES VERSION ${RSPAMD_VERSION}) + SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES VERSION ${RSPAMD_VERSION}) +ELSE(NOT DEBIAN_BUILD) + SET_TARGET_PROPERTIES(rspamdclient PROPERTIES SOVERSION ${RSPAMD_VERSION}) + SET_TARGET_PROPERTIES(rspamdclient PROPERTIES VERSION ${RSPAMD_VERSION}) ENDIF(NOT DEBIAN_BUILD) IF(GLIB_COMPAT) @@ -111,13 +115,14 @@ IF(GLIB_COMPAT) ENDIF(GLIB_COMPAT) IF(NOT DEBIAN_BUILD) -INSTALL(TARGETS rspamdclient rspamdclient_static LIBRARY PUBLIC_HEADER - LIBRARY DESTINATION ${LIBDIR} - PUBLIC_HEADER DESTINATION ${INCLUDEDIR} - ARCHIVE DESTINATION ${LIBDIR}) + INSTALL(TARGETS rspamdclient rspamdclient_static LIBRARY PUBLIC_HEADER + LIBRARY DESTINATION ${LIBDIR} + PUBLIC_HEADER DESTINATION ${INCLUDEDIR} + ARCHIVE DESTINATION ${LIBDIR}) ELSE(NOT DEBIAN_BUILD) -INSTALL(TARGETS rspamdclient - LIBRARY DESTINATION ${LIBDIR}) + INSTALL(TARGETS rspamdclient + LIBRARY DESTINATION ${LIBDIR} + NAMELINK_SKIP) ENDIF(NOT DEBIAN_BUILD) -- 2.39.5