From 0054bd83d8bc5f773f2df3a1985b4651a2097ce8 Mon Sep 17 00:00:00 2001 From: click Date: Sat, 18 Dec 2010 01:36:00 +0100 Subject: [PATCH] Buildsystem/Linux: Fix linking of a long lost little child : jemalloc (yes, it has returned, and is now actively linked again) --HG-- branch : trunk --- cmake/platform/unix/settings.cmake | 5 +++++ dep/CMakeLists.txt | 1 - src/server/worldserver/CMakeLists.txt | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cmake/platform/unix/settings.cmake b/cmake/platform/unix/settings.cmake index 27c370c740e..81f438befc9 100644 --- a/cmake/platform/unix/settings.cmake +++ b/cmake/platform/unix/settings.cmake @@ -1,3 +1,8 @@ +# Package overloads - Linux +if(CMAKE_SYSTEM_NAME MATCHES "Linux") + set(JEMALLOC_LIBRARY "jemalloc") +endif() + # set default configuration directory if( NOT CONF_DIR ) set(CONF_DIR ${CMAKE_INSTALL_PREFIX}/etc) diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt index 8332d1b1546..3e4060af446 100644 --- a/dep/CMakeLists.txt +++ b/dep/CMakeLists.txt @@ -17,7 +17,6 @@ endif() if(CMAKE_SYSTEM_NAME MATCHES "Linux") if(SERVERS) add_subdirectory(jemalloc) - set(JEMALLOC_LIB "jemalloc") endif() endif() diff --git a/src/server/worldserver/CMakeLists.txt b/src/server/worldserver/CMakeLists.txt index c3d663b7562..ceba96b8b89 100644 --- a/src/server/worldserver/CMakeLists.txt +++ b/src/server/worldserver/CMakeLists.txt @@ -164,7 +164,7 @@ target_link_libraries(worldserver collision g3dlib gsoap - ${JEMALLOC_LIB} + ${JEMALLOC_LIBRARY} ${READLINE_LIBRARY} ${TERMCAP_LIBRARY} ${ACE_LIBRARY} @@ -198,3 +198,4 @@ if( USE_COREPCH ) add_native_precompiled_header(worldserver ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/worldPCH) endif() endif() +