mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -3,4 +3,6 @@
|
||||
|
||||
#cmakedefine HAVE_ACE_STACK_TRACE_H
|
||||
|
||||
#cmakedefine USE_MULTI_THREAD_MAP
|
||||
|
||||
#endif HAVE_CONFIG_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
|
||||
|
||||
Reference in New Issue
Block a user