diff options
author | Kudlaty <none@none> | 2009-11-28 15:37:55 +0100 |
---|---|---|
committer | Kudlaty <none@none> | 2009-11-28 15:37:55 +0100 |
commit | a73a8dc549ccca072f8897e364446a93d6337f28 (patch) | |
tree | e129eaacfb0810ccd28395a04e6121ceecd44283 | |
parent | 3f4bf697b8eb6239748ca728ec17a67322f7924d (diff) |
Add option to cmake if should compile with multi thread maps or not.
Usage with: -DUSE_MULTI_THREAD_MAP=true (this will compile with multi thread maps
--HG--
branch : trunk
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | config.h.cmake | 2 | ||||
-rw-r--r-- | src/framework/Platform/Define.h | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fea90bb5345..928d8e35d68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,7 @@ OPTION(DO_WARN "Enable all compile warnings" 0) OPTION(LARGE_CELL "Large cell size" 0) OPTION(SHORT_SLEEP "Short sleep" 0) OPTION(CENTOS "CENTOS" 0) +OPTION(USE_MULTI_THREAD_MAP "With Multithread maps" 0) SET(GENREV_SRC src/tools/genrevision/genrevision.cpp @@ -89,6 +90,10 @@ SET(SCRIPT_LIB trinityinterface) SET(SCRIPT_INCLUDE src/bindings/interface) endif(DO_SCRIPTS) +IF (USE_MULTI_THREAD_MAP) + message("* With Multithread maps") +ENDIF (USE_MULTI_THREAD_MAP) + message("-- Miscellaneus options:") if(DO_CLI) diff --git a/config.h.cmake b/config.h.cmake index 2442e1779c0..e6ccb6e3c2a 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -3,4 +3,6 @@ #cmakedefine HAVE_ACE_STACK_TRACE_H +#cmakedefine USE_MULTI_THREAD_MAP + #endif HAVE_CONFIG_H diff --git a/src/framework/Platform/Define.h b/src/framework/Platform/Define.h index ad2c8b9b179..9536098258a 100644 --- a/src/framework/Platform/Define.h +++ b/src/framework/Platform/Define.h @@ -152,7 +152,9 @@ typedef uint64 OBJECT_HANDLE; #endif #if !defined(DEBUG) && !defined(MANGOS_DEBUG) && !defined(TRINITY_DEBUG) -//#define MULTI_THREAD_MAP + #if defined(USE_MULTI_THREAD_MAP) + #define MULTI_THREAD_MAP + #endif #endif #ifdef MULTI_THREAD_MAP |