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
This commit is contained in:
Kudlaty
2009-11-28 15:37:55 +01:00
parent 3f4bf697b8
commit a73a8dc549
3 changed files with 10 additions and 1 deletions

View File

@@ -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)

View File

@@ -3,4 +3,6 @@
#cmakedefine HAVE_ACE_STACK_TRACE_H
#cmakedefine USE_MULTI_THREAD_MAP
#endif HAVE_CONFIG_H

View File

@@ -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