aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-08-03 17:29:42 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-08-03 17:29:42 +0400
commit2cc8f7c160a723c9e68f5ac2d9452440489051f9 (patch)
tree915d9963ec5d03b7b22cc29995b777c9086ec4e9
parentd639abd39409c67e73811e46dcbbee366e29f91f (diff)
downloadrspamd-2cc8f7c160a723c9e68f5ac2d9452440489051f9.tar.gz
rspamd-2cc8f7c160a723c9e68f5ac2d9452440489051f9.zip
Fix shared libraries versions.
-rw-r--r--lib/CMakeLists.txt21
1 files 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)