From 6a573bda8c74b87112553f28527d496a7056846c Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 26 Jun 2010 13:22:06 +0200 Subject: [PATCH] Changed: #842 Added SOVERSION property to shared libraries --- code/nel/tools/3d/plugin_max/nel_mesh_lib/CMakeLists.txt | 1 + code/nel/tools/3d/plugin_max/nel_patch_lib/CMakeLists.txt | 1 + code/nel/tools/logic/logic_editor_dll/CMakeLists.txt | 1 + code/ryzom/client/src/client_sheets/CMakeLists.txt | 4 +++- code/ryzom/server/src/gameplay_module_lib/CMakeLists.txt | 4 +++- code/ryzom/server/src/pd_lib/CMakeLists.txt | 4 +++- code/ryzom/server/src/server_share/CMakeLists.txt | 4 +++- 7 files changed, 15 insertions(+), 4 deletions(-) diff --git a/code/nel/tools/3d/plugin_max/nel_mesh_lib/CMakeLists.txt b/code/nel/tools/3d/plugin_max/nel_mesh_lib/CMakeLists.txt index 72eff118b..c7ea7c645 100644 --- a/code/nel/tools/3d/plugin_max/nel_mesh_lib/CMakeLists.txt +++ b/code/nel/tools/3d/plugin_max/nel_mesh_lib/CMakeLists.txt @@ -6,6 +6,7 @@ INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR} ${MAXSDK_CS_INC TARGET_LINK_LIBRARIES(nel_mesh_lib ${LIBXML2_LIBRARIES} nelmisc) SET_TARGET_PROPERTIES(nel_mesh_lib PROPERTIES VERSION ${NL_VERSION} + SOVERSION ${NL_VERSION_MAJOR} LINK_FLAGS "/NODEFAULTLIB:libcmt" DEBUG_POSTFIX "_d" RELEASE_POSTFIX "_r" diff --git a/code/nel/tools/3d/plugin_max/nel_patch_lib/CMakeLists.txt b/code/nel/tools/3d/plugin_max/nel_patch_lib/CMakeLists.txt index e6f6eba4a..d9fcb0799 100644 --- a/code/nel/tools/3d/plugin_max/nel_patch_lib/CMakeLists.txt +++ b/code/nel/tools/3d/plugin_max/nel_patch_lib/CMakeLists.txt @@ -10,6 +10,7 @@ TARGET_LINK_LIBRARIES(nel_patch_lib ${MAXSDK_LIBRARIES}) SET_TARGET_PROPERTIES(nel_patch_lib PROPERTIES VERSION ${NL_VERSION} + SOVERSION ${NL_VERSION_MAJOR} LINK_FLAGS "/NODEFAULTLIB:libcmt" DEBUG_POSTFIX "_d" RELEASE_POSTFIX "_r" diff --git a/code/nel/tools/logic/logic_editor_dll/CMakeLists.txt b/code/nel/tools/logic/logic_editor_dll/CMakeLists.txt index a2aba731c..66ae0cd3c 100644 --- a/code/nel/tools/logic/logic_editor_dll/CMakeLists.txt +++ b/code/nel/tools/logic/logic_editor_dll/CMakeLists.txt @@ -10,6 +10,7 @@ INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR}) TARGET_LINK_LIBRARIES(logic_editor_dll ${LIBXML2_LIBRARIES} nelmisc nellogic nelnet) SET_TARGET_PROPERTIES(logic_editor_dll PROPERTIES VERSION ${NL_VERSION} + SOVERSION ${NL_VERSION_MAJOR} DEBUG_POSTFIX "_d" RELEASE_POSTFIX "_r" PROJECT_LABEL "Tools, Logic: Logic Editor DLL") diff --git a/code/ryzom/client/src/client_sheets/CMakeLists.txt b/code/ryzom/client/src/client_sheets/CMakeLists.txt index 1479ca6cd..4aa5fbc95 100644 --- a/code/ryzom/client/src/client_sheets/CMakeLists.txt +++ b/code/ryzom/client/src/client_sheets/CMakeLists.txt @@ -12,7 +12,9 @@ ENDIF(NOT WIN32) INCLUDE_DIRECTORIES(${NEL_INCLUDE_DIR}) TARGET_LINK_LIBRARIES(ryzom_clientsheets ryzom_gameshare ${NELMISC_LIBRARY}) -SET_TARGET_PROPERTIES(ryzom_clientsheets PROPERTIES VERSION ${NL_VERSION}) +SET_TARGET_PROPERTIES(ryzom_clientsheets PROPERTIES + VERSION ${NL_VERSION} + SOVERSION ${NL_VERSION_MAJOR}) IF(WIN32) SET_TARGET_PROPERTIES(ryzom_clientsheets PROPERTIES COMPILE_FLAGS "/Yustdpch.h") diff --git a/code/ryzom/server/src/gameplay_module_lib/CMakeLists.txt b/code/ryzom/server/src/gameplay_module_lib/CMakeLists.txt index 9ea526664..7843c0821 100644 --- a/code/ryzom/server/src/gameplay_module_lib/CMakeLists.txt +++ b/code/ryzom/server/src/gameplay_module_lib/CMakeLists.txt @@ -11,7 +11,9 @@ ENDIF(WIN32) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR}) TARGET_LINK_LIBRARIES(gameplay_module_lib ${NELMISC_LIBRARY}) -SET_TARGET_PROPERTIES(gameplay_module_lib PROPERTIES VERSION ${NL_VERSION}) +SET_TARGET_PROPERTIES(gameplay_module_lib PROPERTIES + VERSION ${NL_VERSION} + SOVERSION ${NL_VERSION_MAJOR}) IF(WIN32) SET_TARGET_PROPERTIES(gameplay_module_lib diff --git a/code/ryzom/server/src/pd_lib/CMakeLists.txt b/code/ryzom/server/src/pd_lib/CMakeLists.txt index f2f7cd80a..5269c047a 100644 --- a/code/ryzom/server/src/pd_lib/CMakeLists.txt +++ b/code/ryzom/server/src/pd_lib/CMakeLists.txt @@ -12,7 +12,9 @@ ENDIF(WIN32) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR}) TARGET_LINK_LIBRARIES(pd_lib ${NELMISC_LIBRARY}) -SET_TARGET_PROPERTIES(pd_lib PROPERTIES VERSION ${NL_VERSION}) +SET_TARGET_PROPERTIES(pd_lib PROPERTIES + VERSION ${NL_VERSION} + SOVERSION ${NL_VERSION_MAJOR}) IF(WIN32) SET_TARGET_PROPERTIES(pd_lib diff --git a/code/ryzom/server/src/server_share/CMakeLists.txt b/code/ryzom/server/src/server_share/CMakeLists.txt index 30c33dc9f..e777d25d9 100644 --- a/code/ryzom/server/src/server_share/CMakeLists.txt +++ b/code/ryzom/server/src/server_share/CMakeLists.txt @@ -10,7 +10,9 @@ TARGET_LINK_LIBRARIES(server_share ${NELMISC_LIBRARY} ${NELPACS_LIBRARY} ${MYSQL_LIBRARIES} ${ZLIB_LIBRARIES}) -SET_TARGET_PROPERTIES(server_share PROPERTIES VERSION ${NL_VERSION}) +SET_TARGET_PROPERTIES(server_share PROPERTIES + VERSION ${NL_VERSION} + SOVERSION ${NL_VERSION_MAJOR}) IF(WIN32) SET_TARGET_PROPERTIES(server_share